Install NVM on Windows 10 – Step‑by‑Step Guide
In this article
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
-
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.exefile (choose the 64‑bit version if your OS is 64‑bit) and click to download. -
Run the installer as administrator. Right‑click the downloaded
nvm‑setup.exeand select Run as administrator. The wizard will ask for an installation folder; the defaultC:\nvmworks for most users. Accept the default or choose another location you have write access to. -
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. -
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) andC:\Program Files\nodejs(where the active Node version will be linked). -
Open a new Command Prompt or PowerShell window. The changes to
PATHonly apply to new shells, so close any existing terminal and reopen it. -
Verify the installation. Run
nvm version. You should see a version number such as1.1.9. If the command is not recognized, double‑check thatC:\nvmis in yourPATHenvironment variable. -
Install a Node.js version. Use the command
nvm install 18.17.0(replace18.17.0with the version you need). NVM downloads the binary, extracts it intoC:\nvm\v18.17.0, and registers it. -
Activate the installed version. Run
nvm use 18.17.0. NVM updates the symbolic link inC:\Program Files\nodejsso thatnode -vnow reports the chosen version. -
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. -
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 Filesand 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
PATHand 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(ornvm 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
.nvmrcfile containing the version number. Then runnvm useinside the project folder to automatically select it. - After installing a new Node version, run
npm install -g npmto 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.