Skip to content

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

  1. Visit the official Node.js website: https://nodejs.org/
  2. Download the LTS version (recommended)
  3. Choose the Windows Installer (.msi) for your system (64-bit for most users)

Install

  1. Run the downloaded .msi installer
  2. Follow the installation wizard
  3. Accept the license agreement
  4. Use the default installation path
  5. Make sure "Add to PATH" is checked
  6. Click Install and wait for completion

Verify Installation

Open Command Prompt or PowerShell and run:

bash
node -v

You should see a version number like v20.x.x.

Also verify npm:

bash
npm -v

Troubleshooting

'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 PATH variable
    • Add C:\Program Files\nodejs\

Permission errors

Run your terminal as Administrator if you encounter permission issues.

Next Steps

Powered by NewtCode