Install or build node_modules from a cache
npm install -g npm-buildpack
After installing go to a node app and run
npm-buildpack my-app-id # my-app-id is $CACHE_ID
The script will do the following things
npm rebuild$CACHE_ID. If so copy it to ./node_modulesnpm install --productionPrimarily useful when your are deploying / building a node app on a remote server. This is similar to the heroku node.js buildpack except it only does npm stuff.
MIT