Alex-Just
12/23/2016 - 1:34 PM

npm update.sh

# 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