garam hyeon
garam hyeon

Reputation: 139

How to I Change node version in windows?

I'm Using nvm-windows. Tried change node version, But It doesn't work for me. It Seems like nvm is not change global node.

How Can I switching node version?

Upvotes: 3

Views: 23376

Answers (2)

Norbert Molnar
Norbert Molnar

Reputation: 101

Install nvm. In nvm you can install all node version, and you can change it very easy. :)

Example

nvm list
nvm install 10.0.0
nvm list
nvm use 10.0.0

And you using node 10.0.0 :)

Upvotes: 5

RonCG
RonCG

Reputation: 369

Uninstall and reinstall nvm. Make sure to do this before reinstalling:

Uninstall existing node Please note, you need to uninstall any existing versions of node.js before installing NVM for Windows. Also delete any existing nodejs installation directories (e.g., "C:\Program Files\nodejs") that might remain. NVM's generated symlink will not overwrite an existing (even empty) installation directory.

Uninstall existing npm You should also delete the existing npm install location (e.g. "C:\Users<user>\AppData\Roaming\npm"), so that the nvm install location will be correctly used instead. Backup the global npmrc config (e.g. C:\Users<user>\AppData\Roaming\npm\etc\npmrc), if you have some important settings there, or copy the settings to the user config C:\Users<user>.npmrc.

Upvotes: 3

Related Questions