Last active
November 11, 2017 22:07
-
-
Save verticalgrain/99ae6497978cde1f91c9ff3265fb32ff to your computer and use it in GitHub Desktop.
NPM Cheat Sheet
This file contains 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
// List all packages | |
npm list | |
// List specific package | |
npm list grunt | |
// Update a package | |
npm update grunt | |
// Update to a specific version (older or newer) | |
npm install [email protected] | |
// Install package globally | |
npm install -g grunt | |
// Install when having permission issues | |
npm install --unsafe-perm packagename | |
// Update to latest version of NPM | |
npm install -g npm@latest |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment