Skip to content

Heroku buildpack used for running commands before installing Node

License

Notifications You must be signed in to change notification settings

offerzen/heroku-buildpack-node-preinstall

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

heroku-buildpack-node-preinstall

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.

1. Add Buildpack

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

2. Configure Config Var

Add the NPMRC config var in Heroku with the contents of your .npmrc file.

See this slab post for the details.

About

Heroku buildpack used for running commands before installing Node

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages