How to install Claude Code on Windows step-by-step. The two install methods (PowerShell vs WSL), the path issue that breaks half of new setups, and how to verify.
Installing Claude Code on Windows takes about 5 minutes if you pick the right method and about 45 minutes if you don't. There are two real options: PowerShell with Node.js (the fastest path for most people) and WSL2 with Ubuntu (better if you already live in a Linux terminal). A third option, Git Bash, exists but creates more problems than it solves.

I'm Tom. I've installed Claude Code on Windows 11, Windows 10, and WSL on three different machines. Here's the path that actually works without the usual permission and PATH errors.
Yes. Claude Code runs on Windows natively via PowerShell and Node.js, and it also runs inside WSL2 (Windows Subsystem for Linux 2). Both methods are officially supported. You need a Claude Pro account ($20/month) or Anthropic API credits to authenticate after install.

The PowerShell method installs Claude Code directly onto your Windows machine using Node.js. The WSL2 method runs Claude Code inside a Linux environment that lives on your Windows machine. Both produce a working Claude Code setup. The difference is how much Linux tooling you want alongside it.
My recommendation: Use PowerShell if you just want Claude Code working today. Use WSL2 if you're already running Docker, Node, or other Linux tools there so everything stays in one environment.

Claude Code requires Node.js 20 or higher. Go to nodejs.org and download the LTS installer. Run it with the defaults. When it's done, confirm the version:
node --versionYou should see v20.x.x or higher. If you see anything below v20, download the current LTS version and reinstall.
Right-click the Start menu and choose "Windows PowerShell (Admin)" or "Terminal (Admin)". You need admin rights for npm to write to the global bin directory. Without this, the install will fail silently or write to a location that isn't in your PATH.
npm install -g @anthropic-ai/claude-codeThis downloads and installs Claude Code globally. It takes 30 to 60 seconds depending on your connection. If you see permission errors, confirm you opened PowerShell as administrator.
claude --versionYou should see a version number. If you see command not found or a PATH error, skip to the path gotcha section below before going further.
claudeClaude Code opens an interactive prompt asking you to log in with your Anthropic account. You need a Claude Pro plan ($20/month) or API credits. Follow the browser authentication flow and return to the terminal when done.
Open PowerShell as administrator and run:
wsl --installOn Windows 11 this is already available. On Windows 10 you may need to enable the Virtual Machine Platform feature first. Restart your machine after this step.
WSL2 defaults to Ubuntu. After the restart, open the Microsoft Store, search "Ubuntu", install the latest LTS version, and launch it to set up a username and password.
Inside the Ubuntu terminal, install Node Version Manager (nvm) for clean control over Node versions:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
source ~/.bashrc
nvm install 20
nvm use 20
node --versionConfirm you're on Node 20 or higher before moving on.
npm install -g @anthropic-ai/claude-code
claude --version
claudeAuthenticate the same way as the PowerShell method. Claude Code is now running inside your Linux environment.
Your Windows files live at /mnt/c/ inside WSL. To work on a Windows project folder, navigate to it like this:
cd /mnt/c/Users/YourName/Projects/my-project
claudeKeep your project files on the Windows filesystem (/mnt/c/) rather than inside WSL's Linux filesystem. Mixing filesystems mid-project causes slow reads and occasional permission confusion.
After a successful npm install -g @anthropic-ai/claude-code, many Windows users type claude --version and see nothing. The binary is on disk, but Windows can't find it because the npm global bin directory isn't in the system PATH.
On Windows, npm installs global binaries to %AppData%\npm. To find the exact path on your machine:
npm config get prefixCopy the output. Now add it to your PATH:
After restarting the terminal, run claude --version again. If it still doesn't resolve, confirm the path you added ends in \npm and that you fully closed and reopened the terminal rather than opening a new tab.
Run both of these checks:
claude --version
claude --helpA working install returns a version number on the first command and help text on the second. If claude --version works but claude --help throws an error, your Node.js version is likely below 20. Recheck with node --version.
To confirm Claude Code can actually run, open a project directory and type claude. It launches the interactive session and prompts for authentication if you haven't logged in yet.
Yes. Claude Code works on Windows 11 via PowerShell with Node.js 20+ or inside WSL2. Windows 11 ships with WSL2 support built in, so either method is available without additional setup.
No. WSL is optional. The PowerShell method installs Claude Code natively on Windows without any Linux subsystem. WSL2 is a good choice if you already use it for development, but it's not required.
The two most common causes are Node.js being below version 20, and the npm global bin directory not being in the system PATH. Check your Node version with node --version and follow the path fix steps in the section above if claude isn't resolving after install.
Yes. PowerShell is the recommended terminal for the native Windows install. Open it as administrator for the install step, then use it normally for day-to-day Claude Code sessions.
Technically yes, but it's not recommended. Git Bash on Windows has known issues with npm global symlinks and PATH resolution that can cause unexpected errors. Stick with PowerShell or use WSL2 with a proper Linux shell.
The install itself is free. To actually use Claude Code, you need either a Claude Pro account ($20/month) or Anthropic API credits. Without valid credentials, the CLI installs but authentication fails and you can't run sessions.
Run the same install command you used originally:
npm install -g @anthropic-ai/claude-codenpm overwrites the existing version with the latest. Check the updated version with claude --version afterward.
Node.js 20 or higher. Older Node versions will fail at install or throw runtime errors. Use node --version to confirm before running the install command.
If you're just getting started or need setup guidance across other platforms, these cover the next steps:
Commands and requirements in this guide come from Anthropic's official documentation and the Claude Code GitHub repo:
Getting Claude Code installed is step one. The bigger unlock is knowing how to use it to build and automate, not just run one-off prompts. The blueprint below is where to start.
Yes. Claude Code runs natively on Windows via PowerShell with Node.js, and it also runs inside WSL2 with Ubuntu. Both methods are officially supported. PowerShell is the fastest path for most people (5 minutes). WSL2 is better if you already live in a Linux terminal for other tools (15 minutes). Git Bash technically works but creates more problems than it solves.
Five steps. Install Node.js 20 or newer from nodejs.org. Open PowerShell as administrator. Run npm install -g @anthropic-ai/claude-code. Verify with claude --version. Authenticate by running claude and following the browser login flow. Admin rights matter for npm to write to the global bin directory cleanly.
No. WSL is optional. The PowerShell method installs Claude Code natively on Windows without any Linux subsystem. WSL2 is a good choice if you already use it for Docker, Node, or other Linux tools and want everything in one environment. For a clean single-purpose install, PowerShell is simpler.
Your npm global bin directory is not in your Windows PATH. Run npm config get prefix to find the npm prefix. Open Environment Variables in the Start menu, edit System Path, click New, and paste the path (ending in \npm). Close all dialogs, fully restart your terminal (not just open a new tab), and try claude --version again.
Technically yes, but not recommended. Git Bash on Windows has known issues with npm global symlinks and PATH resolution that cause unexpected errors. Stick with PowerShell for the native Windows install or use WSL2 with a proper Linux shell. The time you save in setup gets eaten by the time you spend debugging symlink quirks.
The install is free. To actually use it you need either a Claude Pro account ($20 a month) or Anthropic API credits. Without valid credentials, the CLI installs but authentication fails and you cannot run sessions. New API accounts get $5 in trial credits, which is enough for two to ten sessions before you need to add a payment method.
Keep project files on the Windows filesystem at /mnt/c/ when running Claude Code from WSL. Mixing filesystems mid-project causes slow reads and occasional permission confusion. Navigate from WSL with cd /mnt/c/Users/YourName/Projects/my-project and run claude from there. This gives you Linux tooling without the I/O penalty.
Five interactive lessons. Install Claude Code, build your first automation, and deploy it live on the internet — all in under an hour. Free, no coding required.
Grab the Blueprint →