Using Npm
Understand where global packages are installed
npm ls global –depth 0
Installing local package
npm install packageName
Installing & adding local package to package.json
npm install packageName --save
Adding execution scripts
Edit package.json
{
"name": "build",
"version": "1.0.0",
"scripts": {
"test": "node build.js"
"start": "node build.js"
}
}
npm start npm test