TechBuzzPro

Install NVM on Windows 10 – Step‑by‑Step Guide

· 5 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step‑By‑Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes, you can install NVM (Node Version Manager) on Windows 10 using the official nvm‑windows installer, which lets you switch between multiple Node.js versions with a single command.

What You'll Need

  • Windows 10 (64‑bit is recommended for best compatibility)
  • Administrator privileges on the computer
  • Internet connection to download the installer
  • PowerShell or Command Prompt (built‑in)
  • Optional: Git Bash if you prefer a Unix‑like shell

Step‑By‑Step

  1. Download the installer. Open your browser and go to the nvm‑windows GitHub releases page (https://github.com/coreybutler/nvm-windows/releases). Locate the latest nvm‑setup.exe file (choose the 64‑bit version if your OS is 64‑bit) and click to download.
  2. Run the installer as administrator. Right‑click the downloaded nvm‑setup.exe and select Run as administrator. The wizard will ask for an installation folder; the default C:\nvm works for most users. Accept the default or choose another location you have write access to.
  3. Allow the installer to modify your PATH. During the setup you will see a checkbox to add NVM and the Node binaries to the system PATH. Keep it checked. If you decline, you will need to edit the environment variables manually later.
  4. Complete the installation. Click Install, wait for the progress bar, then click Finish. The installer creates two folders: C:\nvm (where NVM stores its files) and C:\Program Files\nodejs (where the active Node version will be linked).
  5. Open a new Command Prompt or PowerShell window. The changes to PATH only apply to new shells, so close any existing terminal and reopen it.
  6. Verify the installation. Run nvm version. You should see a version number such as 1.1.9. If the command is not recognized, double‑check that C:\nvm is in your PATH environment variable.
  7. Install a Node.js version. Use the command nvm install 18.17.0 (replace 18.17.0 with the version you need). NVM downloads the binary, extracts it into C:\nvm\v18.17.0, and registers it.
  8. Activate the installed version. Run nvm use 18.17.0. NVM updates the symbolic link in C:\Program Files\nodejs so that node -v now reports the chosen version.
  9. Set a default version (optional). To make a version the default for every new shell, run nvm alias default 18.17.0. Future terminals will automatically use that version unless you switch manually.
  10. Configure additional settings. NVM stores its configuration in %USERPROFILE%\AppData\Roaming\nvm\settings.txt. You can edit this file to change the root folder, proxy settings, or the default architecture (32‑bit vs 64‑bit) if required.

Common Mistakes

  • Running the installer without admin rights – the installer cannot write to C:\Program Files and the PATH update fails.
  • Installing a 32‑bit Node version on a 64‑bit system and then trying to use a 64‑bit module that expects the matching architecture.
  • Forgetting to open a new terminal after installation, which leaves the old session unaware of the updated PATH.
  • Manually editing PATH and accidentally removing the existing entries for other programs.

Tips

  • Keep the NVM root folder on a drive with ample space; each Node version adds roughly 30‑40 MB.
  • Use nvm list (or nvm ls) to see all installed versions and the currently active one.
  • If you work with both 32‑bit and 64‑bit Node modules, install both architectures and switch with nvm use 14.21.3 32 (add the architecture flag).
  • When a project requires a specific Node version, add an .nvmrc file containing the version number. Then run nvm use inside the project folder to automatically select it.
  • After installing a new Node version, run npm install -g npm to update npm to the version bundled with that Node release.

Troubleshooting

Command not found after install. Close all terminal windows and reopen them. If the problem persists, open the System Properties → Advanced → Environment Variables dialog and ensure C:\nvm appears in the Path variable for both user and system scopes.

“The system cannot find the file specified” when running nvm use. This usually means the requested version was never installed. Run nvm list to see available versions, then install the missing one with nvm install <version>.

Node modules fail to compile. Verify that the active Node architecture matches the compiled binaries of the module. Switch with nvm use <version> 32 or 64 as needed, then reinstall the module.

PATH contains duplicate entries. Duplicate entries do not break NVM but can slow command lookup. Edit the Path variable and remove any redundant C:\nvm lines.

If none of the above resolves the issue, uninstall NVM via the Control Panel, delete the C:\nvm folder manually, and repeat the installation steps from a fresh download.

Frequently Asked Questions

Can I use nvm‑windows to manage both Node.js and npm versions?

Yes. Each Node version includes its own bundled npm, so switching Node with nvm use automatically switches npm to the matching version.

Do I need to reinstall global npm packages after switching Node versions?

Global packages are stored per‑Node version, so they are not shared across versions. If you need a package in multiple versions, install it after each nvm use.

Is it safe to install nvm‑windows on a corporate machine?

As long as you have administrator rights and the IT policy permits installing software from GitHub releases, nvm‑windows is safe. It only writes to the user’s profile and the chosen installation folder.

How do I uninstall a specific Node version?

Run nvm uninstall <version>. The version folder is removed from C:\nvm and the list output no longer shows it.

Can I set a default Node version for a particular project?

Place an .nvmrc file with the desired version number in the project root. When you cd into that directory and run nvm use, NVM reads the file and activates the specified version.

Why does nvm install sometimes fail with a network error?

The installer downloads binaries from the official Node distribution servers. A transient network issue or corporate proxy can interrupt the download. Retry the command or configure proxy settings in settings.txt if you are behind a proxy.