Skip to content

Instantly share code, notes, and snippets.

@Alex-Just
Last active December 29, 2016 10:41
Show Gist options
  • Save Alex-Just/cd58827c8fea3618b8d8275a985976d9 to your computer and use it in GitHub Desktop.
Save Alex-Just/cd58827c8fea3618b8d8275a985976d9 to your computer and use it in GitHub Desktop.
# http://stackoverflow.com/questions/16073603/how-do-i-update-each-dependency-in-package-json-to-the-latest-version
# Use npm-check-updates or npm outdated to suggest the latest versions.
npm outdated
# If you agree, update.
npm update
rm -rf node_modules
rm npm-shrinkwrap.json
npm shrinkwrap
npm install
# Single line
npm update && rm -rf node_modules && npm cache clean && rm npm-shrinkwrap.json && npm shrinkwrap && npm install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment