Upgrading to a specific node js version

Viewed 428

I am trying to upgrade my node to version 14.17.1 by running:

npm install -g node@14.17.1

It succeeds apparently, but when I run node -v, I still get the old version.

Is there an extra step I should take, or am I doing this wrong?

1 Answers

It is good to use a excellent and proven source. Visit official nodejs.org website and go to:

  1. Other Downloads
  2. Previous Releases - link
  3. Choose and Install version whatever You want, on Operating System You actually using. Good Luck ;-)

Or install and use nvm

To download, compile, and install the latest release of node, do this:

nvm install node # "node" is an alias for the latest version

To install a specific version of node:

nvm install 14.7.0 # or 16.3.0, 12.22.1, etc
Related