EEXIST: file already exists, mkdir '.claude' on Windows startup
Status Closed — not planned
Reported on v2.1.68
Maintainer reply None cached
Workaround ✓ Mentioned in description ↑
Activity 2 comments · opened May 17, 2026 · closed Jun 16, 2026
Bug
CLI throws EEXIST error on startup when ~/.claude directory already exists:
> test brasko
⎿ API Error: EEXIST: file already exists, mkdir 'C:\Users\shote\.claude'
Environment
- Platform: Windows 11 Home (10.0.26200)
- Shell: bash (Git Bash / MSYS2)
- Affected version: latest (post v2.1.68)
- Working version: v2.1.68 (downgraded as workaround)
Expected behavior
CLI should check if ~/.claude exists before attempting mkdir, or use mkdir -p / fs.mkdirSync({ recursive: true }).
Workaround
Downgrade to v2.1.68:
npm install -g @anthropic-ai/claude-code@2.1.68This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗