npm install / npm i
Shows current version of npm
npm --version / npm -v
Creates package.json
file with default valuesnpm 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 itnpm install --global live-server / npm i -g live-server
Other shortcuts - https://docs.npmjs.com/misc/config