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
#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