claude-code - 💡(How to fix) Fix [BUG] Claude Code Desktop MacOS can't find git , but git is installed [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#54754Fetched 2026-04-30 06:36:57
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Author
Participants
Timeline (top)
labeled ×4

Error Message

Install Git Git is required to run local sessions. Run xcode-select --install in Terminal to install the Command Line Tools, or download Git directly — or switch to a remote environment.

logs : 2026-04-29 20:10:01 [error] Git command failed: git --version { code: undefined, stderr: undefined, cwd: '/' } 2026-04-29 20:10:01 [error] [LocalSessionManager] Failed to check git status: Failed to spawn /Users/xxx/bin/git: spawn /Users/xxx/bin/git EACCES { stack: 'Error: Failed to spawn /Users/xxx/bin/git: spawn /Users/xxx/bin/git EACCES\n at ChildProcess.<anonymous> (/Applications/Claude.app/Contents/Resources/app.asar/.vite/build/index.js:296:13438)\n at ChildProcess.emit (node:events:521:24)\n at ChildProcess._handle.onexit (node:internal/child_process:293:12)\n at onErrorNT (node:internal/child_process:508:16)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)' }

Code Example

Install Git
Git is required to run local sessions. Run xcode-select --install in Terminal to install the Command Line Tools, or download Git directly — or switch to a remote environment.
-----
logs :
2026-04-29 20:10:01 [error] Git command failed: git --version { code: undefined, stderr: undefined, cwd: '/' }
2026-04-29 20:10:01 [error] [LocalSessionManager] Failed to check git status: Failed to spawn /Users/xxx/bin/git: spawn /Users/xxx/bin/git EACCES { stack: 'Error: Failed to spawn /Users/xxx/bin/git: spawn /Users/xxx/bin/git EACCES\n    at ChildProcess.<anonymous> (/Applications/Claude.app/Contents/Resources/app.asar/.vite/build/index.js:296:13438)\n    at ChildProcess.emit (node:events:521:24)\n    at ChildProcess._handle.onexit (node:internal/child_process:293:12)\n    at onErrorNT (node:internal/child_process:508:16)\n    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)' }
RAW_BUFFERClick to expand / collapse

Preflight Checklist

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

What's Wrong?

When Claude Code Desktop for MacOS is started (Claude 1.5354.0 (9a9e3d) 2026-04-29T01:14:34.000Z) is asking to install git, but git is installed. Started to happen with the last version.

What Should Happen?

Should not request for git installation if it's already installed

Error Messages/Logs

Install Git
Git is required to run local sessions. Run xcode-select --install in Terminal to install the Command Line Tools, or download Git directly — or switch to a remote environment.
-----
logs :
2026-04-29 20:10:01 [error] Git command failed: git --version { code: undefined, stderr: undefined, cwd: '/' }
2026-04-29 20:10:01 [error] [LocalSessionManager] Failed to check git status: Failed to spawn /Users/xxx/bin/git: spawn /Users/xxx/bin/git EACCES { stack: 'Error: Failed to spawn /Users/xxx/bin/git: spawn /Users/xxx/bin/git EACCES\n    at ChildProcess.<anonymous> (/Applications/Claude.app/Contents/Resources/app.asar/.vite/build/index.js:296:13438)\n    at ChildProcess.emit (node:events:521:24)\n    at ChildProcess._handle.onexit (node:internal/child_process:293:12)\n    at onErrorNT (node:internal/child_process:508:16)\n    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)' }

Steps to Reproduce

To start Claude Code Desktop app on mac

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

Claude 1.5354.0 (9a9e3d)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Warp

Additional Information

git --version git version 2.50.1 (Apple Git-155)

extent analysis

TL;DR

The issue is likely due to a permissions error when trying to spawn the git process, and a workaround could be to check the permissions of the git executable.

Guidance

  • Verify the permissions of the git executable at /Users/xxx/bin/git to ensure it is executable by the user running Claude Code Desktop.
  • Check the system logs for any related errors or warnings that may indicate a permission issue.
  • Try running the command xcode-select --install in Terminal to install the Command Line Tools, as suggested by the error message, to see if it resolves the issue.
  • Consider checking the PATH environment variable to ensure it includes the directory where the git executable is located.

Example

No code snippet is provided as it is not necessary for this issue.

Notes

The issue seems to be related to a regression in the latest version of Claude Code, and the error message suggests a permission issue when trying to spawn the git process.

Recommendation

Apply workaround: Check the permissions of the git executable and the PATH environment variable to ensure they are correct, as this is likely to resolve the issue without requiring an upgrade.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] Claude Code Desktop MacOS can't find git , but git is installed [1 participants]