NPM could help developer to reuse other peopele’s code by fetching code from NPM registery.
Since Install Node.js will include NPM, just go to Node.js to install it. Node.js can be viewed as a tool that can make js run outside of browser.
start using it
npm install [-g] packagename
Difference between global and local installation:
Global: can use command in terminal
Local: install packages only in current project
- how to use installed packages
Do not need refresh page anymore after you change your web page
npm install -g live-server
npm install [--save] lodash # --save is not needed for node version > 5.0.0
Browserify lets us require(‘modules’) in the browser by bundling up all of dependencies. Browsers don’t have the require method defined, but Node.js does. With Browserify we can write code that uses require in the same way that we would use it in Node.
npm install -g browserify