How to install older version of node.js on Windows?

node.jsInstallationNpm

node.js Problem Overview


I need to install node.js of version 4.0.0 I tried this:

npm install -g npm@4.0.0 

But I got this message: npm is not recognized as an internal or external command, operable program or batch file

node.js Solutions


Solution 1 - node.js

Go here and find the version you want to install and then download the correct msi file and run the installer. You cannot install node by running this command, also the error you receive is stating that npm is not on your path which suggests machine doesn't currently have node installed on it

Solution 2 - node.js

Just uninstall whatever node version you have in your system. Then go to this site https://nodejs.org/download/release/ and choose your desired version like for me its like v7.0.0/ and click on that go get .msi file of that. Finally you will get installer in your system, so install it. It will solve all your problems.

Solution 3 - node.js

For windows, best is: nvm-windows

1)install the .exe

2)restart (otherwise, nvm will not be undefined)

3)run CMD as admin,

4)nvm use 5.6.0

Note: You MUST run as Admin to switch node version every time.

Solution 4 - node.js

run:

> npm install -g [email protected]

- or whatever version you want after the @ symbol (This works as of 2019)

Solution 5 - node.js

You can use Nodist for this purpose. Download it from here.

Usage:

nodist                         List all installed node versions.
nodist list
nodist ls

nodist <version>               Use the specified node version globally (downloads the executable, if necessary).
nodist latest                  Use the latest available node version globally (downloads the executable, if necessary).

nodist add <version>           Download the specified node version.

More Nodist commands here

Solution 6 - node.js

At first, you will need to uninstall nodejs from the system preferably from Add or Remove Programs or Control Panel. Then, go to nodejs official site, scroll down to find previous releases like in image

enter image description here

click on previous releases and type in the version you are searching for in the search box

enter image description here

Go to downloads and finally select a msi file from the list

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionirynabondView Question on Stackoverflow
Solution 1 - node.jssimon-p-rView Answer on Stackoverflow
Solution 2 - node.jsAlok RanjanView Answer on Stackoverflow
Solution 3 - node.jshoogwView Answer on Stackoverflow
Solution 4 - node.jsDixon YantView Answer on Stackoverflow
Solution 5 - node.jsDarushView Answer on Stackoverflow
Solution 6 - node.jskritizView Answer on Stackoverflow