Skip to content

Instantly share code, notes, and snippets.

@JohannesFischer
Last active September 6, 2016 01:24
Show Gist options
  • Select an option

  • Save JohannesFischer/19b22a250b4a4ae7e69cc61575e97610 to your computer and use it in GitHub Desktop.

Select an option

Save JohannesFischer/19b22a250b4a4ae7e69cc61575e97610 to your computer and use it in GitHub Desktop.
Useful npm commands
# Go to package repo page
npm repo $package
# Go to package home page
npm home $package
# List outdated packages
npm outdated
# Remove extraneous packages
npm prune
# List installed packages and version without dependencies
npm ls --depth 0
# Update Node via npm
npm cache clean -f
npm install -g n
n stable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment