NPM Cheatsheet

Package management

Install Alias

npm i

Install Everything

npm install

Install Production Only

npm install --production

Install As A DevDependency

npm install --save-dev lodash

Install A Package

npm i lodash

Instal A Specific Tag

npm i lodash@latest
npm i sax@3.0.0

Updating

Update Production Packages

npm update

Update Dev Packages

npm update --dev

Update Global Packages

npm update -g

Update A Package

npm update lodash

Listing

List Installed Packages

npm list

View Outdated Packages

npm outdated