Favorite Commands

Prerequisites

Node / NPM Basics

Install NPM package

npm i <name>

Save package to package.json

npm i <name> --save

Install NPM package globally

npm i -g <name>

List globally installed NPM packages

npm list -g --depth=0

Install NPM Check to check for outdated packages

npm i -g npm-check

Use for local project

npm-check

Use globally

npm-check -u -g

Favorite NPM packages

  • See this repo
    • TODO: Create a repo that automatically grabs globally installed NPM packages using shell script