Created
October 27, 2016 08:26
-
-
Save ehnydeel/4f635e25787b7973fec3fa084b2909f2 to your computer and use it in GitHub Desktop.
Update all global npm-packages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Check outdated npm-packages: | |
npm outdated -g --depth=0 | |
#npm-upgrade.sh | |
#!/bin/sh | |
set -e | |
set -x | |
for package in $(npm -g outdated --parseable --depth=0 | cut -d: -f2) | |
do | |
npm -g install "$package" | |
done | |
#npm-upgrade-bleeding.sh | |
#!/bin/sh | |
set -e | |
set -x | |
for package in $(npm -g outdated --parseable --depth=0 | cut -d: -f3) | |
do | |
npm -g install "$package" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment