Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To install Claude Code on Windows, use either WSL 1 or WSL 2 with Linux Node.js, or native Windows with Git for Windows and Git Bash. In the environment you choose, install Node.js 18 or later, run npm install -g @anthropic-ai/claude-code without sudo, then launch claude from your project directory. The key to avoiding common Windows errors is keeping WSL’s Linux tools separate from Windows tools and making sure Claude Code can find Git Bash in native mode.

Choose WSL or native Windows with Git Bash

Anthropic supports Windows 10 and later through WSL 1, WSL 2, or native Windows using Git for Windows and Git Bash. Both approaches work; choose based on whether you want a Linux or Windows command-line environment.

Consideration WSL 1 or WSL 2 Native Windows
Shell and tools Linux environment within Windows Windows with Git Bash
Node.js and npm Install Linux versions inside your WSL distribution Install Node.js in the Windows environment where you will run Claude Code
Git Bash Not required for the WSL shell Requires Git for Windows and a discoverable bash.exe
Common path issue WSL may pick up Windows executables under /mnt/c/ instead of Linux tools Claude Code may not find Git Bash if it is installed in a nonstandard location

Use WSL if you want a Linux environment

Install and run Claude Code inside your Linux distribution, with Linux Node.js and npm. Keep your installation and commands on that side of the boundary rather than mixing Windows and Linux runtimes.

Use native Windows if you prefer Git Bash

Install Git for Windows and run Claude Code from a Windows terminal or Git Bash. If Git Bash is portable or installed somewhere Claude Code does not detect, point Claude Code to its executable using the PowerShell variable described below.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall

Check the prerequisites

  • Windows 10 or later.
  • Node.js 18 or later, installed in the same environment where you will run Claude Code.
  • At least 4 GB of RAM.
  • An internet connection and access from an Anthropic-supported country.
  • Git for Windows when using native Windows with Git Bash.

Authentication also requires an Anthropic-supported access method, such as an Anthropic Console account, Claude Pro or Max, or an enterprise provider.

Install and start Claude Code

  1. Choose the shell. Open your WSL distribution for a Linux installation, or use a Windows terminal or Git Bash for a native installation.
  2. Install Node.js 18 or later in that environment. In WSL, use a Linux package manager or Linux Node version manager; do not rely on a Windows Node installation for Linux commands.
  3. Install Claude Code globally with npm. Run npm install -g @anthropic-ai/claude-code. Anthropic warns: “Do NOT use sudo npm install -g as this can lead to permission issues and security risks.”
  4. Change to your project directory and start Claude Code. Run claude, then complete the authentication flow for your account or enterprise provider.
  5. Check the installation. Run claude doctor to diagnose setup problems.

Set Git Bash’s path for native Windows

Claude Code needs Git for Windows when running natively. If Git Bash is portable or installed outside the location Claude Code detects, set CLAUDE_CODE_GIT_BASH_PATH in PowerShell to the full path of bash.exe:

$env:CLAUDE_CODE_GIT_BASH_PATH="C:Program FilesGitbinbash.exe"

This PowerShell form applies to the current session. To retain a variable for future PowerShell sessions, use Windows’ user or system environment-variable controls, then open a new shell. If Git is installed elsewhere, substitute the actual path to its bash.exe.

Rank #2
Dell Latitude 3190 11.6" HD 2-in-1 Touchscreen Laptop Intel N5030 1.1Ghz 4GB Ram 128GB SSD Windows 11 Professional (Renewed)
  • 1.1 GHz (boost up to 2.4GHz) Intel Celeron N5030 Quad-Core
  • 4GB DDR4 System Memory; 128GB Solid State Drive
  • 11.6" HD (1366 x 768) Multi-Touch Display
  • Combo headphone/microphone jack - Noble Wedge Lock slot - HDMI; 2 USB 3.1 Gen 1
  • Windows 11 Pro

Diagnose command and PATH problems

If the shell says claude is not recognized or cannot be found, the Claude executable may not be installed or its npm global bin directory may not be on that shell’s PATH. Check command discovery and versions in the same environment where you installed Claude Code.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

PowerShell checks

Get-Command claude
Get-Command node
Get-Command npm
$env:Path
where.exe claude
claude --version
node --version
npm --version

Git Bash or WSL checks

which claude
which node
which npm
echo "$PATH"
claude --version
node --version
npm --version

Confirm that the active shell can locate the expected executables. If you change PATH or a persistent environment variable, close and reopen the shell before checking again. For WSL-specific Node and npm path checks, see the next section.

Fix WSL errors involving Node.js or npm

When Claude Code reports node: not found in WSL, check whether npm and Node.js resolve to Linux executables rather than Windows-mounted ones:

Rank #3
Dell Latitude 5420 14" FHD Business Laptop Computer, Intel Quad-Core i5-1145G7, 16GB DDR4 RAM, 256GB SSD, Camera, HDMI, Windows 11 Pro (Renewed)
  • 256 GB SSD of storage.
  • Multitasking is easy with 16GB of RAM
  • Equipped with a blazing fast Core i5 2.00 GHz processor.
which npm
which node

Both paths should point to Linux locations such as /usr/..., not Windows paths under /mnt/c/.... If either command selects a Windows executable, install Node.js inside the Linux distribution and make sure that distribution’s paths resolve to the Linux installation. Mixing Windows and Linux runtimes can cause missing-Node errors or platform-detection failures.

If npm makes an incorrect platform check in WSL, Anthropic documents these commands for that condition:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
npm config set os linux
npm install -g @anthropic-ai/claude-code --force --no-os-check

Use the forced install only when the WSL platform-check problem applies; it is not the general installation command.

Rank #4
15.6 Inch Laptop Computer, N4020, 4GB DDR4 RAM, 128GB eMMC,with Windows 11
  • EFFORTLESS EVERYDAY PERFORMANCE: Powered by Intel Celeron N4020 processor and Windows 11 Home system, delivering reliable, low-power efficiency for daily tasks like document editing, email, online classes, and web browsing
  • 15.6-INCH FULL HD DISPLAY: Enjoy immersive visuals on the 15.6" FHD (1920x1080) anti-glare screen with micro-edge bezels. Delivers clear details and comfortable viewing for long study sessions, working on spreadsheets, and video playback
  • RESPONSIVE MULTITASKING & STORAGE: Built with 4GB LPDDR4 RAM and 128GB eMMC storage for smooth daily essential use. Expand your storage by up to 1TB via the integrated TF card slot to easily store movies, photos, and working files
  • ADVANCED CONNECTIVITY: Outfitted with 2x Full-Featured Type-C ports for data transfer, fast charging, and dual-monitor output, alongside 2x USB 3.2 Gen1 ports and a 3.5mm audio jack for complete peripheral compatibility
  • LIGHTWEIGHT & SILENT OPERATION: Slim and portable for effortless travel or commuting. Features a 1MP HD webcam for remote meetings, 38Wh battery with 45W Type-C fast charging, and a fanless silent design for peaceful work environments.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Resolve proxy, certificate, and authentication failures

If installation or authentication fails on a corporate network, ask your network administrator whether proxy or custom certificate settings are required. Anthropic’s documented proxy settings include HTTP_PROXY and HTTPS_PROXY; networks using a custom certificate authority may also require SSL_CERT_FILE and NODE_EXTRA_CA_CERTS.

Set variables in the shell you use

In PowerShell, environment variables for the current session use this form:

$env:HTTP_PROXY="http://proxy.example:port"
$env:HTTPS_PROXY="http://proxy.example:port"
$env:SSL_CERT_FILE="C:pathtoca-certificates.pem"
$env:NODE_EXTRA_CA_CERTS="C:pathtoca-certificates.pem"

In Git Bash or WSL, use the corresponding Unix form:

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Sale
15.6 Inch Win 11 Laptop Computer, N4020, 4GB DDR4 RAM, 128GB Storage
  • WINDOWS 11 | STABLE PERFORMANCE: Powered by Intel Celeron N4020 processor and Windows 11 system, this laptop delivers stable performance for everyday computing tasks. It supports web browsing, online learning, document editing, email communication, and basic office work with optimized power efficiency, providing a practical and reliable experience for essential daily use for daily use.
  • 15.6” FHD IPS DISPLAY: Features a 15.6-inch Full HD IPS display with narrow bezels, offering wider viewing angles and clearer image details compared to standard panels. The improved screen-to-body ratio enhances visual experience for study, reading, document work, and video playback, making it suitable for both productivity and entertainment use.
  • 4GB DDR4 + 128GB eMMC STORAGE: Equipped with 4GB DDR4 memory and 128GB eMMC storage for everyday basics such as browsing, documents, email, and online learning platforms. The built-in TF card slot supports storage expansion up to 1TB, giving you more flexibility for files, photos, videos, and daily documents. TF card not included.
  • CONNECTIVITY & PORTS: Includes 1× TF card slot, 2× USB 3.2 Gen1 ports, and 2× full-featured Type-C ports (USB 3.2 Gen1). The Type-C ports support data transfer, charging, and video output, enabling flexible connection with external devices such as monitors, storage, and peripherals for daily work and study use.
  • LIGHTWEIGHT DESIGN | ONLINE COMMUNICATION: Designed with a slim, portable profile, this laptop is easy to carry for school, commuting, and travel. A built-in 1MP front camera supports online classes, video meetings, remote communication, and everyday conferencing. The 3300mAh battery works with the low-power system design to support practical daily use, while thermal optimization helps maintain quieter operation during extended tasks.
export HTTP_PROXY="http://proxy.example:port"
export HTTPS_PROXY="http://proxy.example:port"
export SSL_CERT_FILE="/path/to/ca-certificates.pem"
export NODE_EXTRA_CA_CERTS="/path/to/ca-certificates.pem"

Replace the example proxy address and certificate paths with values from your administrator. These assignments apply to the current shell session; use your environment’s normal persistent-variable controls if the settings must be available in later sessions.

Check firewall allowlisting and unsupported proxy settings

Ask the network administrator to allow access to api.anthropic.com, statsig.anthropic.com, and sentry.io. Anthropic states that Claude Code does not support the NO_PROXY environment variable or SOCKS proxies. A network that depends on either may prevent the expected connection from working.

Update Claude Code

To update an existing installation manually, run claude update from the environment where Claude Code is installed.

Quick Recap

Bestseller No. 1
HP 14' HD Laptop, Windows 11, Intel Celeron Dual-Core Processor Up to 2.60GHz, 4GB RAM, 64GB SSD, Webcam, Dale Pink (Renewed)
HP 14" HD Laptop, Windows 11, Intel Celeron Dual-Core Processor Up to 2.60GHz, 4GB RAM, 64GB SSD, Webcam, Dale Pink (Renewed)
14" diagonal, 1366x768 resolution, HD BrightView LED, Glossy NON-TOUCH Display
$249.99
Bestseller No. 2
Dell Latitude 3190 11.6' HD 2-in-1 Touchscreen Laptop Intel N5030 1.1Ghz 4GB Ram 128GB SSD Windows 11 Professional (Renewed)
Dell Latitude 3190 11.6" HD 2-in-1 Touchscreen Laptop Intel N5030 1.1Ghz 4GB Ram 128GB SSD Windows 11 Professional (Renewed)
1.1 GHz (boost up to 2.4GHz) Intel Celeron N5030 Quad-Core; 4GB DDR4 System Memory; 128GB Solid State Drive
Bestseller No. 3
Dell Latitude 5420 14' FHD Business Laptop Computer, Intel Quad-Core i5-1145G7, 16GB DDR4 RAM, 256GB SSD, Camera, HDMI, Windows 11 Pro (Renewed)
Dell Latitude 5420 14" FHD Business Laptop Computer, Intel Quad-Core i5-1145G7, 16GB DDR4 RAM, 256GB SSD, Camera, HDMI, Windows 11 Pro (Renewed)
256 GB SSD of storage.; Multitasking is easy with 16GB of RAM; Equipped with a blazing fast Core i5 2.00 GHz processor.
$294.98

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.