GitHub Readme.md
A Heroku buildpack for overriding the .npmrc file in the build directory with the contents of a config var. Necessary for authorizing with npm when installing private packages.
repo
, write:packages
and read:packages
heroku config:set API_CLIENT_GITHUB_AUTH_TOKEN=token
, replacing token
with the token you created on step 2heroku-buildpack-npmrc
needs to run before any buildpack using npm. In the following example, it runs before the heroku/nodejs
buildpack.$ heroku buildpacks:set --index 1 https://github.com/mindfulchefuk/heroku-buildpack-npmrc.git
$ heroku buildpacks:add heroku/nodejs
Copy the snippet above into CLI.