Appearance
Cowork 启动崩溃 exited with code 1:缺少 Git for Windows
问题
Windows 上 Claude Desktop Cowork 新建会话时崩溃,仅显示:
Claude Code process exited with code 1检查 cowork_vm_node.log 日志可以看到实际报错:
Claude Code was unable to find CLAUDE_CODE_GIT_BASH_PATH path bash.exe重置应用数据无效,已有的旧会话不受影响,但新建会话必定失败。
解决方案
从该版本起,Cowork 新建会话依赖 Git for Windows 提供的 bash.exe。
安装 Git for Windows(包含 bash):
- 前往 https://git-scm.com/download/win 下载并安装
- 安装时勾选"Add Git to PATH"(推荐:Git from the command line and also from 3rd-party software)
- 安装完成后重启 Claude Desktop
验证: 在命令提示符执行 bash --version,有输出则说明已正确安装。
注意: 若已安装 Git for Windows 但仍报错,检查 CLAUDE_CODE_GIT_BASH_PATH 环境变量是否指向正确的 bash.exe 路径(通常为 C:\Program Files\Git\bin\bash.exe)。