🌐
Claude
code.claude.com › docs › en › setup
Set up Claude Code - Claude Code Docs
# Install stable version (default) curl -fsSL https://claude.ai/install.sh | bash # Install latest version curl -fsSL https://claude.ai/install.sh | bash -s latest # Install specific version number curl -fsSL https://claude.ai/install.sh | bash ...
🌐
Reddit
reddit.com › r/claudeai › install claude code on windows without wsl
r/ClaudeAI on Reddit: Install claude code on windows without WSL
June 16, 2025 -

Step 1: Open cmd

Open cmd as administrator

Step 2: Set NPM configuration, telling npm to ignore executing scripts in packages during installation (e.g., preinstall, postinstall, etc.)

setx NPM_CONFIG_IGNORE_SCRIPTS true

$env:NPM_CONFIG_IGNORE_SCRIPTS = “true”

Step 3: Configure the SHELL environment variable

setx SHELL "C:\Program Files\Git\bin\bash.exe"

Step 4: Install Claude Code

npm install -g @anthropic-ai/claude-code

Step 5: Add to Environment Variables

Add this line to your environment variables: C:\Users\y.xie\.npm-global

Step 6: Restart the development environment

Restart CMD or your IDE (e.g., VS Code, IntelliJ IDEA), then log in to your Claude Code account or configure the API directly within the application to start using it.

Supplementary Notes

  • Ensure Git for Windows is installed, with the path being C:\Program Files\Git\bin\bash.exe.

  • If the Git installation path is different, please adjust the SHELL environment variable path accordingly.

  • The path C:\Users\y.xie\.npm-global should also be added based on your actual path.

  • It is recommended to set these variables permanently to avoid having to reconfigure after each restart.

  • Later, if you want to uninstall and revert the changes from Step Two and Step Three, just execute setx NPM_CONFIG_IGNORE_SCRIPTS false and setx SHELL "".

🌐
Medium
drlee.io › the-dead-simple-way-to-run-claude-code-on-windows-git-bash-is-your-secret-weapon-401c733a61d2
The Dead-Simple Way to Run Claude Code on Windows (Git Bash Is Your Secret Weapon) | by Dr. Ernesto Lee | Nov, 2025 | Medium
November 16, 2025 - Micro-Why: Node.js provides the JavaScript runtime that Claude Code is built on. NPM (Node Package Manager) gives you the tool to install Claude Code globally on your system. Git for Windows includes Git Bash, the Unix-compatible terminal that makes everything work.
🌐
Shukebeta
blog.shukebeta.com › 2025 › 06 › 25 › running-claude-code-on-windows-without-wsl
Running Claude Code on Windows Without WSL | Scribbles for my bad memory
Git Bash provides enough Unix-like environment for Claude Code. The SHELL export tells it where to find bash, and NPM_CONFIG_IGNORE_SCRIPTS prevents install script issues. This is a workaround, not official support. Works fine in my vm, let me know if it also works on your machine!
🌐
Bind AI IDE
blog.getbind.co › 2025 › 08 › 26 › how-to-install-claude-code-cli
How to Install Claude Code CLI – Bind AI IDE
August 27, 2025 - Most features run best on modern terminals like Bash, Zsh, or Fish, though Windows users can leverage PowerShell or Git Bash for smooth operation. Also, install Node.js 18+—the primary prerequisite for all npm-based installations. Claude Code CLI offers two primary installation routes: npm and native binary.
🌐
Claude
claude.ai › public › artifacts › 03a4aa0c-67b2-427f-838e-63770900bf1d
Claude Code Installation Guide for Windows 11
Just open the Microsoft Store app, search for "Windows Terminal", and click Install. Other compatible alternatives include ConEmu, Hyper, or even the integrated terminals in VS Code or other development environments, though these might require additional configuration.
🌐
GitHub
github.com › aaronvstory › claude-code-windows-setup
GitHub - aaronvstory/claude-code-windows-setup: Production-ready Claude Code setup for Windows with path translation, Git Bash integration, and right-click context menu
# Clone or download this repository git clone https://github.com/aaronvstory/claude-code-windows-setup.git cd claude-code-windows-setup # Run installer as Administrator (for context menu) .\installer\install-claude-windows.ps1
Author   aaronvstory
🌐
Smartscope
smartscope.blog › en › generative-ai › claude › claude-code-windows-native-installation
Claude Code Windows Install: No WSL Required (3min PowerShell Setup) - SmartScope
Native Windows Claude Code installation in 3min. No WSL, runs in PowerShell. Auto Node.js/Git setup, clipboard image paste fix. Step-by-step guide 2025.
🌐
GitHub
github.com › somersby10ml › win-claude-code
GitHub - somersby10ml/win-claude-code: Claude Code for Windows: No WSL. No Docker. Just code.
# Install Claude Code globally npm install -g @anthropic-ai/claude-code --ignore-scripts # Run it npx win-claude-code@latest · That's it. 🎉 · Bypasses bash dependency checks - No more terminal detection fails ...
Starred by 224 users
Forked by 20 users
Languages   JavaScript
Find elsewhere
🌐
iTechs Online
itecsonline.com › post › how-to-install-claude-code-on-windows
How To Install Claude Code on Windows: Complete Guide 2025 | Blog // ITECS
July 30, 2025 - Note: These credentials don't need to match your Windows user credentials. Remember them as you'll need them for sudo commands. It's always good practice to install the latest updates. Run these commands in your Ubuntu terminal: ... mkdir -p ~/.npm-global npm config set prefix ~/.npm-global echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.bashrc source ~/.bashrc ... ⚠️ Important: Do NOT use sudo when installing Claude Code.
🌐
GitHub
github.com › anthropics › claude-code › issues › 8674
[BUG]Claude Code VS Code Extension Fails to Detect Git Bash on Windows Despite Correct Configuration · Issue #8674 · anthropics/claude-code
October 1, 2025 - Issue [BUG] Git Bash path conversion issue - Windows paths not properly converted #2602: Git Bash path conversion issues · This bug completely blocks the use of Claude Code VS Code extension, preventing: ... The CLI version works but lacks the integrated VS Code experience needed for effective development workflow. # Working Git installation PS> git --version git version 2.50.0.windows.2 # Working Bash installation PS> & "C:\Program Files\Git\bin\bash.exe" --version GNU bash, version 5.2.37(1)-release (x86_64-pc-msys) # Correct environment variable PS> $env:CLAUDE_CODE_GIT_BASH_PATH C:\Program Files\Git\bin\bash.exe # PATH includes Git PS> $env:PATH -split ';' | Where-Object { $_ -like "*Git*" } C:\Program Files\Git\cmd
Published   Oct 01, 2025
🌐
Medium
medium.com › @lvalics_37568 › setting-up-claude-code-on-windows-macos-449eed161e10
Setting up Claude Code on Windows & macOS | by Valics Lehel | Medium
June 20, 2025 - curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash source ~/.bashrc nvm install --lts nvm use --lts ... The first run opens a browser tab. Sign in with Claude Pro ($20/mo) or Claude Max ($100/mo), or paste an Anthropic Console API key. Tip: keep Windows-side Git for GUI apps like GitHub Desktop, but run Claude Code inside WSL so paths and permissions stay Linux-friendly.
🌐
GitHub
github.com › anthropics › claude-code › issues › 4507
[BUG] Claude Code fails to resolve Git Bash path with space in Windows (`Program Files`) · Issue #4507 · anthropics/claude-code
July 26, 2025 - It works perfectly in Claude Desktop, but when using Claude Code, the execution fails due to how it handles the Git Bash path that contains a space (Program Files). Install Git for Windows (default location: C:\Program Files\Git)
Published   Jul 26, 2025
🌐
ClaudeLog
claudelog.com › home › install
Install Claude Code | ClaudeLog
Complete Claude Code installation guide: step-by-step setup for macOS, Windows & Linux, API configuration, model selection, and troubleshooting tips.
🌐
Lib00
wiki.lib00.com › en › content › 1078 › claclaude-code-requires-git-bash-error-on-windows-heres-the-easy-fix
“Claude Code requires Git Bash” Error on Windows? Here's the Easy Fix
The default path is: `C:\Program Files\Git\bin\bash.exe` Adjust this path according to your actual installation location. 2. **Set the Environment Variable**: As the error message suggests, you need to set an environment variable named `CLAUDE_CODE_GIT_BASH_PATH`. * **Temporary Fix (Current Session Only)**: In a PowerShell window, execute the following command, replacing the path with your actual path: ```powershell $env:CLAUDE_CODE_GIT_BASH_PATH="C:\Program Files\Git-lib00\bin\bash.exe" ``` After running this, try `claude -v` in the same window to test it.
🌐
GitHub
github.com › anthropics › claude-code › issues › 12022
[BUG] Claude Code VS Code extension keeps showing “requires git-bash” on Windows even though Git Bash + env var are correctly set · Issue #12022 · anthropics/claude-code
November 20, 2025 - git --version → git version 2.51.2.windows.1 bash --version → GNU bash, version 5.2.37(1) echo $env:CLAUDE_CODE_GIT_BASH_PATH → C:\Program Files\Git\bin\bash.exe
Published   Nov 20, 2025
🌐
DEV Community
dev.to › shahidkhans › from-zero-to-ai-powered-developer-your-complete-claude-code-cli-setup-guide-4l9i
From Zero to AI-Powered Developer: Your Complete Claude Code CLI Setup Guide - DEV Community
August 6, 2025 - Option 2: Native Windows with Git Bash This approach requires Git for Windows and additional configuration. For portable Git installations, you'll need to specify the bash path: $env:CLAUDE_CODE_GIT_BASH_PATH="C:\Program Files\Git\bin\bash.exe"
🌐
GitHub
github.com › ruvnet › claude-flow › issues › 574
claude-flow impossible to setup on Windows with Git bash instead of WSL · Issue #574 · ruvnet/claude-flow
August 4, 2025 - Claude Code has Git bash windows setup instead of WSL The issue with this is though is that it's not compatible with the claude-flow MCP server and sometimes even ruv-swarm MCP server. I tried setting the command to "C:\Program Files\Git...
Published   Aug 04, 2025