Mark Pearl

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

blog comments powered by Disqus

Want to get my personal insights on what I learn as I learn it? Subscribe now!