Install Node.js on Windows
Node.js is required for tools like Claude Code and Codex CLI. Follow these steps to install it on Windows.
Download
- Visit the official Node.js website: https://nodejs.org/
- Download the LTS version (recommended)
- Choose the Windows Installer (.msi) for your system (64-bit for most users)
Install
- Run the downloaded
.msiinstaller - Follow the installation wizard
- Accept the license agreement
- Use the default installation path
- Make sure "Add to PATH" is checked
- Click Install and wait for completion
Verify Installation
Open Command Prompt or PowerShell and run:
bash
node -vYou should see a version number like v20.x.x.
Also verify npm:
bash
npm -vTroubleshooting
'node' is not recognized as a command
- Restart your terminal after installation
- If still not working, manually add Node.js to your system PATH:
- Search "Environment Variables" in Windows Settings
- Edit the
PATHvariable - Add
C:\Program Files\nodejs\
Permission errors
Run your terminal as Administrator if you encounter permission issues.