Last active
August 29, 2015 14:18
-
-
Save pinalbhatt/14465440b620bb4f298e to your computer and use it in GitHub Desktop.
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
#install | |
sudo npm install -g gulp | |
npm install gulp --save-dev |
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
#Global as of 10/Apr/2015 | |
├── [email protected] | |
├── [email protected] | |
├── [email protected] | |
├── [email protected] | |
├── [email protected] | |
├── [email protected] | |
├── [email protected] | |
├── [email protected] | |
├── [email protected] | |
├── [email protected] | |
└── [email protected] |
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
#Listing globally installed NPM packages and version | |
#package.json documentation https://docs.npmjs.com/files/package.json | |
npm list -g --depth=0 | |
#npm-check-updates | |
#https://github.com/tjunnone/npm-check-updates | |
npm-check-updates | |
npm-check-updates -g | |
npm-check-updates -u # upgrade package.json dependencies to match latest versions (maintaining existing policy) | |
npm-check-updates -V #version check | |
#Update Global Packages | |
#update npm | |
sudo npm update -g npm | |
#update other packages | |
sudo npm update -g bower ionic | |
#uninstall | |
sudo npm uninstall -g packageName | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment