EEXIST: file already exists, mkdir '.claude' on Windows startup

Resolved 💬 1 comment Opened May 17, 2026 by ousher 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.68

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗