Socket
Book a DemoInstallSign in
Socket

npm-buildpack

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npm-buildpack

Install and build node_modules from cache. Useful when installing node_modules on deployment

latest
Source
npmnpm
Version
0.1.10
Version published
Maintainers
1
Created
Source

npm-buildpack

Install or build node_modules from a cache

npm install -g npm-buildpack

Usage

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

  • If there already is a node_modules folder just run npm rebuild
  • See if there is cache stored for $CACHE_ID. If so copy it to ./node_modules
  • Prune the cache
  • Run npm install --production
  • Save ./node_modules to the cache

Primarily 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.

License

MIT

FAQs

Package last updated on 29 Jan 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts