Menu

Close
  • Home
  • LinkedIn
  • Real Life Code @ Micreosoft
  • GitHub
Subscribe
Shawn Cicoria Menu

Proper npm Global Package Upgrade

30 December 2016 on nodejs, npm

Per the npm documentation, this is the script to use:

Here's the gist

#!/bin/sh

set -e  
set -x

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

Shawn Cicoria

Read more posts by this author.

Share this post

Twitter Facebook Google+

Blockchain followers are not Disruptive Enough

One of the main challenges I see is everyone is bringing traditional business processes forward as an attempt to…

macOS is my new home

Yea, I switched to macOS two years ago as I came from a nix background. I had Surface Book,…

Shawn Cicoria © 2021
Proudly published with Ghost