-
-
Save mAAdhaTTah/49c2e59eda85f37b325f to your computer and use it in GitHub Desktop.
Upgrade npm to latest/bleeding
This file contains hidden or 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
#!/bin/sh | |
set -e | |
set -x | |
for package in $(npm -g outdated --parseable --depth=0 | cut -d: -f3) | |
do | |
npm -g install "$package" | |
done |
This file contains hidden or 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
#!/bin/sh | |
set -e | |
set -x | |
for package in $(npm -g outdated --parseable --depth=0 | cut -d: -f2) | |
do | |
npm -g install "$package" | |
done |
This file contains hidden or 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
source <(curl -fsSL https://gist.githubusercontent.com/mAAdhaTTah/49c2e59eda85f37b325f/raw/4ead4c8989c66104a22240819131b99295bc4e37/npm-upgrade.sh) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment