Skip to content

Instantly share code, notes, and snippets.

@r-i-c-h
Last active January 17, 2020 05:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save r-i-c-h/d12a6faaf14f3612b6239e6809b082f1 to your computer and use it in GitHub Desktop.
Save r-i-c-h/d12a6faaf14f3612b6239e6809b082f1 to your computer and use it in GitHub Desktop.
How to Update Node.js

To Update Node

Latest "Long Term Support" Ver

nvm install lts/*

Latest "Stable" Version

nvm install stable

Update + Reinstall your GLOBAL packages:

  • Update to Node latest version + reinstall Global Packages from your current default version:

nvm install node --reinstall-packages-from=node;

  • Update to Node latest version + reinstall Global Packages from a specific prior version:

nvm install node --reinstall-packages-from=11;

Then make sure you are using the right version and you nvm alias default ____ the new version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment