Skip to content

Instantly share code, notes, and snippets.

@fmoliveira
Forked from othiym23/npm-upgrade-bleeding.sh
Last active August 29, 2015 14:22
Show Gist options
  • Save fmoliveira/374f2fc05eb6b501c830 to your computer and use it in GitHub Desktop.
Save fmoliveira/374f2fc05eb6b501c830 to your computer and use it in GitHub Desktop.
#!/bin/sh
set -e
set -x
for package in $(npm -g outdated --parseable --depth=0 | cut -d: -f3)
do
npm -g install "$package"
done
#!/bin/sh
set -e
set -x
for package in $(npm -g outdated --parseable --depth=0 | cut -d: -f2)
do
npm -g install "$package"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment