npm install moment # Install a package
npm install eslint --save-dev # tool for validating standard in code
#equivalent to: npm install eslint -D. Into Dependencies in package.json
npm install react --save # stored as dependency
# equivalent to: npm install reac -S. Into devDependencies in package.json
npm install -g cowsay #install as a global package
npm list # list pacakges
npm list -g #list global packages
npm install package-name -o #install optional dependency
npm install react-dom --dry-run #simulate installation without actually adding it
npm install json-server@0.15.0 #Install specific version
npm install json-server@latest #Install latest version
npm install # Install packages in package.json