Skip to content

Instantly share code, notes, and snippets.

@hadihammurabi
Last active July 15, 2019 03:15
Show Gist options
  • Save hadihammurabi/7fbae184aefacc6bbeda10d87f1d9b10 to your computer and use it in GitHub Desktop.
Save hadihammurabi/7fbae184aefacc6bbeda10d87f1d9b10 to your computer and use it in GitHub Desktop.
Shell script to update all npm outdated global package
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