dkocich
2/4/2019 - 7:21 PM

This helps me update global NPM packages on Ubuntu

This helps me update global NPM packages on Ubuntu

#!/bin/sh
set -e
set -x
for package in $(npm -g outdated --parseable --depth=0 | cut -d: -f2)
do
    npm -g install "$package"
done