[BUG] "Anthropic marketplace requires git · Install git and restart" false positive when git already installed
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
- Have git installed and accessible in PATH
- Install Anthropic marketplace
- Use marketplace plugin with bypass permissions (shift+tab to cycle)
- 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
Had the same issue, only fix which woked was to delete ~/.claude.json, I suppose that root cause will be there.
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.
I still see it on startup but it usually disappears after a few seconds and the marketplace still works.
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.
I uninstalled claude code and reinstalled using npm install -g @anthropic-ai/[email protected] (stable) and it worked.
Closing for now — inactive for too long. Please open a new issue if this is still relevant.
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.