Last active
July 15, 2019 03:15
-
-
Save hadihammurabi/7fbae184aefacc6bbeda10d87f1d9b10 to your computer and use it in GitHub Desktop.
Shell script to update all npm outdated global package
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
sudo npm i -g $(npm outdated -g --depth=0 --parseable | cut -d: -f2 | awk -F'\n' ' { printf "%s ", $1 } ') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment