claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] "Anthropic marketplace requires git · Install git and restart" false positive when git already installed

Open dial481 opened this issue 10 months ago • 1 comments

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?

Claude Code incorrectly displays "Anthropic marketplace requires git · Install git and restart" error message in the UI when:

  • Git is already installed and functional on the system
  • The Anthropic marketplace plugin is already installed
  • The plugin is currently in use
  • This appears to be a false positive git detection error in the marketplace dependency validation system.

Environment:

Claude Code Version: 2.1.3 (Claude Code) Operating System: Linux (Debian 12.12) Git Version: 2.39.5

What Should Happen?

Claude Code should detect the installed git and not display the false error message.

Error Messages/Logs

Anthropic marketplace requires git · Install git and restart

Steps to Reproduce

  1. Have git installed and accessible in PATH
  2. Install Anthropic marketplace
  3. Use marketplace plugin with bypass permissions (shift+tab to cycle)
  4. Observe error message "Anthropic marketplace requires git · Install git and restart"

Claude Model

Not sure / Multiple models

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.1.3

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Terminal.app (macOS)

Additional Information

Image

dial481 avatar Jan 10 '26 13:01 dial481

Had the same issue, only fix which woked was to delete ~/.claude.json, I suppose that root cause will be there.

frogggias avatar Jan 11 '26 11:01 frogggias

Getting this issue as well. The json file deletion didn't work, now whenever I open claude code it just closes itself. I'm only able to launch claude code without it auto closing in --dangerously-skip-permissions mode.

zachleach avatar Feb 03 '26 01:02 zachleach

I still see it on startup but it usually disappears after a few seconds and the marketplace still works.

dial481 avatar Feb 03 '26 09:02 dial481

The issue is that claude will not check the marketplace after a failed attempt for 5 hours. The timestamp is marked in ~/.claude.json under officialMarketplaceAutoInstallNextAttempt and setting this to 0 will force the check to happen next time you launch.

It would make sense to just do a check each time at launch if its not installed rather than having the timestamp as anyone getting the error would just install git and then relaunch claude expecting the error to go away and not realise there's a wait period.

hitsuji avatar Feb 05 '26 19:02 hitsuji

I uninstalled claude code and reinstalled using npm install -g @anthropic-ai/[email protected] (stable) and it worked.

PieroValdebenito avatar Feb 27 '26 04:02 PieroValdebenito

Closing for now — inactive for too long. Please open a new issue if this is still relevant.

github-actions[bot] avatar Mar 27 '26 10:03 github-actions[bot]

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

github-actions[bot] avatar Apr 04 '26 14:04 github-actions[bot]