cicorias
5/13/2017 - 1:51 AM

upgrading npm packages the right way

upgrading npm packages the right way

#!/bin/sh

set -e
set -x

for package in $(npm -g outdated --parseable --depth=0 | cut -d: -f2)
do
    npm -g install "$package"
done