Node.js

Update Node.js

Move to the latest long-term-support version of Node.js.

  1. Update Node.js
    Terminal
    brew upgrade node

    Installed it with nvm? Use the Linux steps instead.

Check it worked

  1. Check the version
    Terminal
    node --version
  1. Install the latest LTS and bring your global packages along
    Terminal · Ubuntu / Debian
    nvm install --lts --reinstall-packages-from=current
  2. Make it the default
    Terminal · Ubuntu / Debian
    nvm alias default lts/*

Check it worked

  1. Check the version
    Terminal · Ubuntu / Debian
    node --version
  1. Update Node.js
    PowerShell
    winget upgrade OpenJS.NodeJS.LTS

Check it worked

  1. Check the version
    PowerShell
    node --version

    Open a new PowerShell window first.