I need to install node.js 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, operating program or batch file
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, you will also get a message that npm is not in your path, which assumes that the machine is not currently installed node
For windows, this is best: nvm-windows
1) install .exe
2) reboot (otherwise nvm will not be undefined)
3) run CMD as administrator
4) NVM use 5.6.0
Note: you MUST work as administrator to switch the node version each time.
Just uninstall any version of the host on your system. Then go to this site https://nodejs.org/download/release/ and select the desired version, for example, for me, for example, v7.0.0 /, and click to get the .msi- file of this. Finally, you get the installer on your system, so install it. This will solve all your problems.
You can use Nodist for this purpose. Download it here
Using:
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.
Additional Nodist Commands Here
to run:
npm install -g node@7.10.1