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.
If node --version already returns v18.x.x or higher, you can skip the installation section.
Check Whether Node.js Is Installed
Open PowerShell and run:
node --versionIf you see a version like this, Node.js is available:
v20.x.xMethod 1: Official Installer
This is the easiest option for most Windows users.
- Visit the official download page: https://nodejs.org/en/download
- Choose the LTS version.
- Download the Windows installer.
- Run the
.msifile and keep the default options. - Reopen PowerShell after installation.

Method 2: Winget
On Windows 11 or newer Windows 10 systems, you can install Node.js with Winget:
winget install OpenJS.NodeJS.LTSAfter installation, close and reopen your terminal.
Method 3: Chocolatey or Scoop
If you already use Chocolatey:
choco install nodejs-ltsIf you already use Scoop:
scoop install nodejs-ltsIf you are not familiar with command-line package managers, use the official installer first.
Verify the Installation
Run both commands:
node --versionnpm --versionIf both commands print version numbers, your environment is ready.
Common Problem: Command Not Found
If Windows says that node is not recognized:
- Close and reopen PowerShell.
- Restart Windows.
- Check whether Node.js was added to the system
PATH. - Reinstall Node.js with the official installer.
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!