Installs package
npm install  /  npm i
Shows current version of
npm
npm --version  / npm -v
Creates
package.json
file with default values
npm init --yes  /  npm init -y
Installs package
moment
npm install moment --save  /  npm i moment -S
Installs package
lodash
for
dev environment
npm install lodash --save-dev  /  npm i moment -D
Installs package
live-server
globally so that other apps can use it
npm install --global live-server  /  npm i -g live-server
Other shortcuts - https://docs.npmjs.com/misc/config
by Valeri Tandilashvili
4 years ago
NPM
npm Tutorial for Beginners
0
Pro tip: use ```triple backticks around text``` to write in code fences