Last active
September 6, 2016 01:24
-
-
Save JohannesFischer/19b22a250b4a4ae7e69cc61575e97610 to your computer and use it in GitHub Desktop.
Useful npm commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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