[BUG] Claude Code npm package checks for hardcoded path C:\c\git on Windows startup

Resolved 💬 5 comments Opened Aug 21, 2025 by NotMilk Closed Jan 6, 2026

Environment

  • Platform (select one):
  • [ ] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [X] Other: Claude Code npm package
  • Claude CLI version: 1.0.86 (Claude Code)
  • Operating System: Windows 11
  • Terminal: PowerShell 7.5.2

Bug Description

Claude Code CLI displays "Path C:\c\git was not found." error on every startup, even though Git is properly installed at C:\Program Files\Git and working correctly.

Steps to Reproduce

  1. Install Claude Code via npm: npm install -g @anthropic-ai/claude-code
  2. Open PowerShell in any directory
  3. Run claude
  4. Error message appears before Claude welcome message

Expected Behavior

Claude Code should start without errors when Git is properly installed and accessible via PATH.

Actual Behavior

Displays "Path C:\c\git was not found." error message on every startup, then continues to function normally. The error appears to be a hardcoded path check that doesn't respect actual Git installation locations.

Additional Context

  • Git is installed at C:\Program Files\Git (standard location)
  • REPO is at "c:\git"
  • Git commands work properly from command line
  • Claude Code functions normally after displaying the error
  • Error cannot be resolved through configuration as the path appears hardcoded in cli.js
  • No configuration files contain reference to C:\c\git path

View original on GitHub ↗

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