Signup Now for Heroku AppLink and Eventing Pilots!
GitHub Readme.md
Heroku buildpack used for running commands before installing Node.
Currently used for overriding the .npmrc file in the build directory with the contents of a config var for authorizing with npm when installing private packages.
Add the buildpack to your Heroku app either using the CLI or the Heroku dashboard.
The heroku-buildpack-node-preinstall
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/offerzen/heroku-buildpack-node-preinstall.git
$ heroku buildpacks:add heroku/nodejs
Add the NPMRC config var in Heroku with the contents of your .npmrc file.
See this slab post for the details.
Copy the snippet above into CLI.