Created
June 2, 2018 07:09
-
-
Save bitbonsai/7eba29810094c16c9598013c2c8fb42a to your computer and use it in GitHub Desktop.
Update all npm global 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
function npm_update() { | |
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