[BUG] Error: Claude Code on Windows requires git-bash (https://git-scm.com/downloads/win).

Resolved 💬 6 comments Opened Nov 12, 2025 by zeng-gq Closed Jan 17, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Error: Claude Code on Windows requires git-bash (https://git-scm.com/downloads/win). If installed but not in PATH, set environment variable pointing to your bash.exe, similar to: CLAUDE_CODE_GIT_BASH_PATH=C:\Program Files\Git\bin\bash.exe
Troubleshooting resources

What Should Happen?

<img width="2048" height="678" alt="Image" src="https://github.com/user-attachments/assets/3bc7474d-9001-4e20-b039-f0d8650eab5a" />

<img width="426" height="85" alt="Image" src="https://github.com/user-attachments/assets/2f24f93e-add8-436f-a121-932f07e1e7dd" />

我已经看了好多的缺陷报告,但是github检测到重复的问题就自动关闭这个类似的问题。但是这个问题是一直没有解决的。我都等了差不多一个月了。之前回滚到1.0.126是可以用的。 我看其他人有报告这个问题的都是选择了回滚。勉强能使用。

Error Messages/Logs

2025-11-13 00:48:20.017 [info] AuthManager initialized
2025-11-13 00:48:20.242 [info] Received message from webview: {"type":"request","requestId":"v1nmn7p65yp","request":{"type":"init"}}
2025-11-13 00:48:20.243 [info] Getting authentication status
2025-11-13 00:48:20.243 [info] OAuth tokens found in secure storage
2025-11-13 00:48:20.243 [info] Auth status: method=claudeai
2025-11-13 00:48:20.252 [info] Received message from webview: {"type":"request","requestId":"h3ja86wl0lh","request":{"type":"rename_tab","title":"Claude Code"}}
2025-11-13 00:48:20.252 [info] Received message from webview: {"type":"request","requestId":"ynytus235o","request":{"type":"get_claude_state"}}
2025-11-13 00:48:20.277 [info] Loading config cache by launching Claude...
2025-11-13 00:48:20.277 [error] Failed to load config cache: Error: Claude Code on Windows requires git-bash (https://git-scm.com/downloads/win). If installed but not in PATH, set environment variable pointing to your bash.exe, similar to: CLAUDE_CODE_GIT_BASH_PATH=C:\Program Files\Git\bin\bash.exe
2025-11-13 00:48:20.277 [error] Error processing client request: Error: Claude Code on Windows requires git-bash (https://git-scm.com/downloads/win). If installed but not in PATH, set environment variable pointing to your bash.exe, similar to: CLAUDE_CODE_GIT_BASH_PATH=C:\Program Files\Git\bin\bash.exe
2025-11-13 00:48:20.277 [info] Received message from webview: {"type":"request","requestId":"yaz0ai9ctkc","request":{"type":"get_current_selection"}}
2025-11-13 00:48:20.277 [info] Received message from webview: {"type":"request","requestId":"63q47qlm7qo","request":{"type":"get_asset_uris"}}
2025-11-13 00:48:20.278 [info] Received message from webview: {"type":"request","requestId":"4a4qur4ddos","request":{"type":"list_sessions_request"}}
2025-11-13 00:48:20.278 [info] Received message from webview: {"type":"request","requestId":"1oifi1jp24y","request":{"type":"list_sessions_request"}}
2025-11-13 00:48:20.278 [info] Received message from webview: {"type":"request","requestId":"jztfarmu2aq","request":{"type":"list_sessions_request"}}
2025-11-13 00:48:20.278 [info] Received message from webview: {"type":"request","requestId":"9rqtb0h3y","request":{"type":"rename_tab","title":"Claude Code"}}
2025-11-13 00:48:20.279 [info] Received message from webview: {"type":"request","requestId":"xr3mhrs70ih","request":{"type":"rename_tab","title":"Claude Code"}}
2025-11-13 00:48:20.279 [info] Received message from webview: {"type":"launch_claude","channelId":"233br3ob3u7","cwd":"d:\\github\\xiaohongshu-mcp","model":"default","permissionMode":"default","thinkingLevel":"off"}
2025-11-13 00:48:20.300 [info] Launching Claude on channel: 233br3ob3u7
2025-11-13 00:48:20.300 [info] Closing Claude on channel: 233br3ob3u7
2025-11-13 00:48:20.300 [error] Error spawning Claude (on channel 233br3ob3u7): Error: Claude Code on Windows requires git-bash (https://git-scm.com/downloads/win). If installed but not in PATH, set environment variable pointing to your bash.exe, similar to: CLAUDE_CODE_GIT_BASH_PATH=C:\Program Files\Git\bin\bash.exe
2025-11-13 00:48:20.301 [info] Received message from webview: {"type":"interrupt_claude","channelId":"ynytus235o"}
2025-11-13 00:48:20.301 [warning] Channel not found: ynytus235o

Steps to Reproduce

<img width="566" height="676" alt="Image" src="https://github.com/user-attachments/assets/4f01edb7-c038-4809-8d28-9704388cd20e" />

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

1.0.126

Claude Code Version

2.0.36

Platform

Other

Operating System

Windows

Terminal/Shell

VS Code integrated terminal

Additional Information

_No response_

View original on GitHub ↗

This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗