Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I update node.js to a specific version on Windows?

I have node version 6.11.3 installed. I need to install 8.11.3 on windows. I just can't find anything that works. Does anyone know how to do this?

like image 435
Sam Avatar asked Sep 02 '19 14:09

Sam


People also ask

How do I run a specific version of Node in Windows?

Wrap up. NVM for Windows allows us to switch between versions of node efficiently. First, we install the node versions we need to work with into NVM using nvm install . We then use nvm use to switch to a specific version of node.

How do I specify Node version?

The n command for installing and activating a version of Node is simple: n 6.17. 1 . You could also use n latest for the latest version of Node or n lts for the latest LTS version of Node. If the version of Node is already installed, then n will simply switch to that version.


1 Answers

The easiest option is to just download the appropriate .msi installer (x64 or x86) for the desired version. With each downloaded update, the newer versions will replace the older version. So for 8.11.3 you'd use https://nodejs.org/download/release/v8.11.3/

List of all versions can be found here: https://nodejs.org/en/download/releases/


However, if you want to be more flexible, you can give the windows version of NVM (node version manager) a try:

https://github.com/coreybutler/nvm-windows

like image 192
NullDev Avatar answered Sep 24 '22 22:09

NullDev