Skip to content

Instantly share code, notes, and snippets.

@taywils
Created April 19, 2017 00:37
Show Gist options
  • Save taywils/df1139e855c70faf421fc6e262de66e7 to your computer and use it in GitHub Desktop.
Save taywils/df1139e855c70faf421fc6e262de66e7 to your computer and use it in GitHub Desktop.
npm upgrade global packages script
#!/bin/sh
set -e
set -x
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