Node.js NPM preinstall
If you need to install a custom module or run anything before NPM does its install you can use scripts/preinstall.
{
  "name" : "your-app",
  "version" : "0.0.1",
  "scripts" : {
    "preinstall" : "npm install ./custom_modules/backend-common"
  }
}This is great for doing anything when "npm install" happens.
Written by Charlie Key
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
 #Nodejs 
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#

 
 
 
