Skip to content

Instantly share code, notes, and snippets.

@pinalbhatt
Last active August 29, 2015 14:18
Show Gist options
  • Save pinalbhatt/14465440b620bb4f298e to your computer and use it in GitHub Desktop.
Save pinalbhatt/14465440b620bb4f298e to your computer and use it in GitHub Desktop.
NPM Commands
#install
sudo npm install -g gulp
npm install gulp --save-dev
#Global as of 10/Apr/2015
├── bower@1.4.1
├── cordova@4.3.0
├── express@4.12.3
├── express-generator@4.12.1
├── gulp@3.8.11
├── ionic@1.3.19
├── ios-sim@3.1.1
├── npm@2.7.6
├── npm-check-updates@1.5.1
├── tsd@0.5.7
└── typescript@1.5.0-alpha
#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