Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

npm install -g [email protected]  

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

like image 936
irynabond Avatar asked Nov 21 '15 23:11

irynabond


People also ask

How do I install a specific version of nodejs?

Use npm list [package-name] to know the specific latest version of an installed package. Use npm install [package-name]@[version-number] to install an older version of a package. Prefix a version number with a caret (^) or a tilde (~) to specify to install the latest minor or patch version, respectively.


2 Answers

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

like image 181
simon-p-r Avatar answered Sep 21 '22 23:09

simon-p-r


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.

like image 30
Alok Ranjan Avatar answered Sep 17 '22 23:09

Alok Ranjan