Mark Evans
Mark Evans

Reputation: 964

How to run older versions of node.js on windows

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

Upvotes: 12

Views: 19395

Answers (4)

Kourosh Neyestani
Kourosh Neyestani

Reputation: 841

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

Upvotes: 0

d_air
d_air

Reputation: 641

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.

Upvotes: 0

Corey
Corey

Reputation: 5239

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

enter image description here

Upvotes: 7

user568109
user568109

Reputation: 47993

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.

Upvotes: 16

Related Questions