Common Node Package Manager (npm) commands.

# Install a package in the current directory
npm install <package>

# Install a package, and save it in the `dependencies` section of `package.json`
npm install --save <package>

# Install a package, and save it in the `devDependencies` section of `package.json`
npm install --save-dev <package>

# Uninstall a package
npm uninstall <package>

# Updates node package manager
npm update npm -g

# Update all outdated local packages
npm update

# Update all global packages by doing
npm update -g

# Update `npm` (will override the one shipped with Node.js)
npm install -g npm

# Check a package for outdated dependencies:
npm outdated

# Check for packages not declared in package.json
npm prune

# Lock down your dependencies versions
npm shrinkwrap

# Search for packages
# Arguments are greps. <npm search jsdom> shows jsdom packages.
npm search

# see where modules go
npm root

# see where executables go
npm bin

# List installed packages
npm ls