Node.js

Update npm and your global packages

Bring npm itself and the tools you installed with npm install -g up to date.

  1. Update npm itself
    Terminal
    npm install -g npm@latest
  2. See which global packages are out of date
    Terminal
    npm outdated -g
  3. Update them all
    Terminal
    npm update -g

Check it worked

  1. Check npm's version
    Terminal
    npm --version
  1. Update npm itself
    Terminal · Ubuntu / Debian
    npm install -g npm@latest
  2. See which global packages are out of date
    Terminal · Ubuntu / Debian
    npm outdated -g
  3. Update them all
    Terminal · Ubuntu / Debian
    npm update -g

Check it worked

  1. Check npm's version
    Terminal · Ubuntu / Debian
    npm --version
  1. Update npm itself
    PowerShell
    npm install -g npm@latest
  2. See which global packages are out of date
    PowerShell
    npm outdated -g
  3. Update them all
    PowerShell
    npm update -g

Check it worked

  1. Check npm's version
    PowerShell
    npm --version