Setup Node.js on Windows
Aug 27, 2025Introduction
The easiest way to install Node.js on Windows is to use nvm-windows (Node Version Manager for Windows). It lets you install multiple versions and switch between them.
What You’ll Install
-
Node.js — lets you run JavaScript outside the browser.
-
npm (comes with Node) — for installing packages.
-
(Optional but recommended) nvm-windows — manage multiple Node versions.
Option A — nvm-windows (Recommended)
-
Download nvm-setup.exe from: nvm-windows releases. Ref: https://www.freecodecamp.org/news/nvm-for-windows-how-to-download-and-install-node-version-manager-in-windows-10/.
-
Run the installer.
-
Open Command Prompt or PowerShell and verify:
-
Use for the latest Long-Term Support version
nvm install lts
nvm list available
nvm use <version from available>. E.g. nvm use 22.18.0
node -v
npm -v
Notes:
-
To install a Node.js version, say 22.18.0, use nvm install 22.18.0.
-
Switch versions anytime with
nvm use <version>
.
Option B — Official Installer
-
Go to nodejs.org and download the LTS Windows installer.
-
Run the installer (defaults are fine).
-
Verify in a new terminal:
Create Your First Script
-
Create a file
hello.js
: -
Run it:
Common Issues
-
Node command not found → Close and reopen your terminal.
-
Switching versions doesn’t work → Run
nvm use <version>
again. -
Proxy issues in corporate networks → Configure npm:
Which Version Should You Use?
-
LTS (Long-Term Support): Best for most users.
-
Current: Latest features, but updates often.
Check anytime:
π That’s it — you’re ready to use Node.js on Windows!
Stay Updated with the Latest News!
For simplicity, we donβt have a separate newsletter for CodingArchitect at the moment. However, you can stay informed about learning updates from CodingArchitect, Cloudericks, and BuddyTutorΒ by subscribing to the free Buddy Skills Newsletter on BuddyTutor.com.
π How to Subscribe?
Simply visit BuddyTutor.com and scroll to the bottom of the homepage to sign up.
Stay connected and never miss an update! π