Install Node.js on Windows

209 words
1 minute
Install Node.js on Windows

Install Node.js on Windows#

Node.js is a common runtime required by many AI coding tools. Before using Claude Code, Codex, Gemini CLI, or similar command-line tools on Windows, install Node.js 18 or newer.

Important

If node --version already returns v18.x.x or higher, you can skip the installation section.

nodejs
/
node
...
00K
0K
0K
...

Check Whether Node.js Is Installed#

Open PowerShell and run:

Terminal window
node --version

If you see a version like this, Node.js is available:

Terminal window
v20.x.x

Method 1: Official Installer#

This is the easiest option for most Windows users.

  1. Visit the official download page: https://nodejs.org/en/download
  2. Choose the LTS version.
  3. Download the Windows installer.
  4. Run the .msi file and keep the default options.
  5. Reopen PowerShell after installation.

Node.js download page
Node.js download page

Method 2: Winget#

On Windows 11 or newer Windows 10 systems, you can install Node.js with Winget:

Terminal window
winget install OpenJS.NodeJS.LTS

After installation, close and reopen your terminal.

Method 3: Chocolatey or Scoop#

If you already use Chocolatey:

Terminal window
choco install nodejs-lts

If you already use Scoop:

Terminal window
scoop install nodejs-lts
Tip

If you are not familiar with command-line package managers, use the official installer first.

Verify the Installation#

Run both commands:

Terminal window
node --version
npm --version

If both commands print version numbers, your environment is ready.

Common Problem: Command Not Found#

If Windows says that node is not recognized:

  1. Close and reopen PowerShell.
  2. Restart Windows.
  3. Check whether Node.js was added to the system PATH.
  4. Reinstall Node.js with the official installer.
Note

Most cases happen because the terminal has not reloaded the updated environment variables yet.

Support & Share

If this article helped you, please share or support!

Sponsor
Install Node.js on Windows
https://docs.bingyun.vip/en/posts/shop/nodeinstall/
Author
BingYun
Published at
2025-10-03
License
CC BY-NC-SA 4.0

Comments

Profile image of BingYun
BingYun
Welcome to BingYun Docs!
Categories
Tags
Site Statistics
Posts
12
Categories
2
Tags
5
Total Words
10,808
Running Days
0 days
Last Activity
0 days ago

Table of Contents