Back to Blogs
Install NodeJS using NVM on Windows

Install NodeJS using NVM on Windows

2 min read
By Bhargav

Here's a step-by-step tutorial to install Node.js using NVM (Node Version Manager) on Windows:


✅ Step 1: Download NVM for Windows

  1. Go to the official NVM for Windows GitHub repository:
    👉 https://github.com/coreybutler/nvm-windows/releases

  2. Download the latest .exe file (e.g., nvm-setup.exe).

  3. Run the installer and follow the instructions:

    • Choose a directory for NVM (e.g., C:\nvm)
    • Choose a directory for Node.js (e.g., C:\Program Files\nodejs)
  4. Finish the installation and open a new Command Prompt.


✅ Step 2: Verify NVM Installation

In your Command Prompt, run:

nvm version

You should see the installed NVM version (e.g., 1.1.12). If you get an error, restart your computer or ensure NVM is in your system PATH.


✅ Step 3: Install Node.js with NVM

Use NVM to install a specific version of Node.js:

nvm install 18.17.1

You can replace 18.17.1 with any version you want (check all versions at https://nodejs.org).


✅ Step 4: Use the Installed Node.js Version

Activate a version using:

nvm use 18.17.1

You’ll see:

Now using node v18.17.1 (64-bit)

✅ Step 5: Verify Node.js and npm

Check if Node.js and npm are working:

node -v
npm -v

You should see versions like:

v18.17.1
9.6.7

✅ Bonus: Switch Between Node.js Versions

If you install multiple versions:

nvm install 20.12.0
nvm use 20.12.0

You can list all installed versions with:

nvm list

Let me know if you want a PowerShell or script version of this process.