Claude Code process exited with code 1

Resolved 💬 3 comments Opened Mar 21, 2026 by RoosterJa Closed Mar 25, 2026

Preflight Checklist

  • [ ] 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?

Whenever i try to use claude code, an error constantly pops up that says Claude Code process exited with code 1, i have bash installed in the correct directory and it still dosent work.

What Should Happen?

Claude code should be able to run if i have the correct directory for bash

Error Messages/Logs

Claude Code was unable to find CLAUDE_CODE_GIT_BASH_PATH path "C:\Program Files\Git\bin\bash.exe"

Steps to Reproduce

Install Git for Windows from https://git-scm.com/downloads/win, accepting all defaults
Set Windows User environment variable CLAUDE_CODE_GIT_BASH_PATH to C:\Program Files\Git\bin\bash.exe
Install the Claude Code extension in VS Code from the marketplace
Open VS Code and click the Spark icon to open Claude Code
Observe error: "Claude Code was unable to find CLAUDE_CODE_GIT_BASH_PATH path C:\Program Files\Git\bin\bash.exe"

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.81

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

_No response_

View original on GitHub ↗

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