header banner

Installing NVM on a Windows computer

NVM is a tool used with Node, and the installation process on Windows is pretty straightforward.

NVM on Windows

If you're a developer running Windows 11 or Windows 10, you're probably already familiar with Node Version Manager (NVM). This is a tool that can be used for managing Node.js, the open-source Javascript runtime environment used to create front and back-end applications. It's a popular web framework, and you'll almost certainly want to keep it updated, which is where NVM comes into play to help you manage multiple Node.js versions or switch between them. Here's how you can get started with installing it on Windows.

How to install NVM on Windows

Installing NVM on Windows is pretty straightforward. All you'll need to do is download the installer and then head into a Command Prompt or Windows Powershell session.

  1. On your PC, head over to the NVM releases page on GitHub.
  2. Choose nvm-setup.exe under Assets.
    The NVM listing in Github
  3. Once downloaded, launch the setup file.
  4. If prompted by Windows, choose Yes.
  5. Accept the license agreements.
    NVM license agreements
  6. Press Next to confirm the install path.
  7. Press Next again to confirm the directory.
    The NVM install path on Windows
  8. Press Install and then Finish.
  9. When done, launch Command Prompt as an administrator and type the following. If you prefer, this same command also works in PowerShell, too. nvm -v
    NVM running in Command Prompt

Once you type out the command above, you'll see a version number for the version of NVM that you installed. The current one, as of this writing, is version 1.17.

How to install Node versions and switch between them

If you are installing multiple versions of Node and have downloaded older or newer versions, you can switch between them easily. There are a few commands you'll need to know.

  1. To switch between an older version of NVM, download the legacy version first from GitHub and install it just as above. You also can use nvm install (version number). As an example, nvm install 8.15.0.
  2. To see all installed versions, use the command nvm list.
    A list of NVMe versions on Windows
  3. Then, use the command nvm use (version number). As an example: nvm use 8.15.0.

As you can tell, it doesn't take much to install NVM on Windows when compared to other operating systems like Linux or MacOS. All you need to do is launch an installer, just like you would for any other application on your system.

Hopefully, this was helpful, but we do have additional guides if you're a developer. If you're looking for a new desktop to support your coding, check out our list of the best desktop computers. If you prefer a laptop, check out the best laptops for programming.


Article information

Author: Sarah Soto

Last Updated: 1704130321

Views: 1749

Rating: 4.1 / 5 (110 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Sarah Soto

Birthday: 1976-05-04

Address: 13831 Alexis Prairie Apt. 693, Moranberg, DE 99815

Phone: +4826064381360728

Job: Environmental Engineer

Hobby: Photography, Cooking, Wine Tasting, Meditation, Lock Picking, Arduino, Drone Flying

Introduction: My name is Sarah Soto, I am a persistent, audacious, courageous, proficient, lively, transparent, steadfast person who loves writing and wants to share my knowledge and understanding with you.