The basic command for npm
rm -rf node_modules && npm install
npm init
npm install libName(just install no dependecies in package.json)
npm install --save libName(install and add dependencies in package.json)
npm install --save-dev libName(dev dependencies will be used only in developing preiod, not in publish product)
npm install -g libName
npm i projectName
npm start
cntl+c
npm un <packageName>
npm list —depth=0
npm outdated
npm update
For es6 thread :
/*jshint esversion: 6 */