title: Installing private GitHub npm package in Google Cloud Functions does not work
body: <p>I'm trying to deploy a microservice to GCF, which has a dependency of a private GitHub-hosted package. To gain access to the package, I added a .npmrc file to the function as described <a href="https://cloud.google.com/functions/docs/writing/specifying-dependencies-nodejs#using_private_modules" rel="nofollow noreferrer">here</a>, the file looks like this:</p>
  <pre><code>registry=https://npm.pkg.github.com/OWNER
  //npm.pkg.github.com/:_authToken=PERSONAL-ACCESS-TOKEN
  </code></pre>
  <p>Also tried using a NPM_TOKEN env variable in the Cloud Function</p>
  <pre><code>NPM_TOKEN=PERSONAL-ACCESS-TOKEN
  </code></pre>
  <p>Both result in the following error:</p>
  <blockquote>
  <p>OperationError: code=3, message=Build failed: { error: { canonicalCode: &quot;INVALID_ARGUMENT&quot; }}</p>
  <p>npm ERR! 404 Not Found: @packagescope/packagename</p>
  </blockquote>
  <p>Installing locally works fine, so does deploying on Zeit Now.</p>