Question

I want to install v0.8.6 of node along with v0.10.

  1. How can I install NVM on windows

  2. And use it to install older node

Était-ce utile?

La solution

nvm is suited for linux environments. It requires HOME variable to be set where it will put the different node versions. For windows there is nvmw.

Similarly an alternative to nvm is n. For which the windows version is nodist.

See this useful blog.

Autres conseils

I've just released a project called NVM for Windows. It comes with an installer and super-easy commands.

enter image description here

In a case like mine that I just want to remove the current version and install the older one, I just did it by running the node installer of the current version and select the remove button. Afterwards, I install the older version.

You can check your current NodeJS version by using the command node -v. And changing your version can be done by using node version manager.

Use n, an extremely simple Node version manager that can be installed via npm.

npm install -g n   # Install n globally
n 8.16.0           # Install and use v8.16.0 OR any version you want
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top