How to install Node.js via nvm on Windows

Posted on July 5th 2018 by Zarko

How to install Node.js via nvm (Node Version Manager) on Windows

VIDEO TUTORIAL NOW AVAILABLE! https://www.youtube.com/watch?v=P6VdG7ZP82w

Be sure to visit my new YouTube channel linked below! Also, if you found the tutorial useful please take a second to like the video and subscribe for more content in the future!

Node.js Logo

nvm is a Node.js version manager which enables us to easily install, update, manage and change our Node.js version via the command line.

You can find it's page here: https://github.com/coreybutler/nvm-windows

To download the nvm installer for Windows, follow the 'Download Now!' on their page, or click the link below:

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

Select the nvm-setup.zip option:

nvm-windows Download

When the download finishes, use your favorite archiver software to open the ZIP archive, extract and run the nvm-setup.exe installation file (press 'Run'/'Yes' when the Window security dialog pops up).

1) You should see the installer welcome screen. Press 'Next' to continue.

nvm Windows Installation

2) Select the 'I accept the agreement' option (after reading the license agreement) and press 'Next'.

nvm Windows Installation

3) Type C:\nvm for the install location (you can specify an alternate path if you prefer).

nvm Windows Installation

4) In the next step, leave the predefined path for the Node.js Symlink.

nvm Windows Installation

5) Click 'Install' to begin the installation process.

After it finishes installing, press 'Finish' to finalize the wizard.

nvm Windows Installation

Installing Node.js via nvm (Node Version Manager)

6) Start Windows Powershell (press the Windows Start button and type ‘powershell’ to find the shortcut) and type the following command:

nvm install latest
nvm use 10.6.0
(or the current version that gets installed at the time you are running the command)

Press 'Yes' when the Window security dialog pops up.

Node.js Windows Installation

To find out what other options nvm offers, see their documentation page: https://github.com/coreybutler/nvm-windows#usage

7) Now you can start your Node.js console by typing node in the terminal.

You can check the current active version of Node.js and npm with node -v and npm -v, respectively.

Node.js Terminal

If you navigate to the folder that contains a file with Node.js code, you will be able to execute it by typing:
node filename.js