[BUG] [Windows] Hangs on startup with repeated EEXIST: file already exists, mkdir 'C:\Users\<username>' errors when saving config lock
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?
On startup from windows terminal, running claude appears to hang. Cursor disappears. This occurs regardless of which project I try to open, even empty folders.
What Should Happen?
Claude should open and show welcome message.
Error Messages/Logs
Failed to save config with lock: Error: EEXIST: file already exists, mkdir 'C:\Users\lovelace'
Steps to Reproduce
Type "claude" at the terminal.
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
2.1.68
Claude Code Version
2.1.69
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Windows Terminal
Additional Information
OS: Windows 11
Claude Code version: 2.1.69
Install method: native
The debug log file contents
Summary: "Claude Code hangs on startup, debug log shows repeated EEXIST: file already exists, mkdir 'C:\Users\lovelace' errors when attempting to save config with lock"
I downloaded 2.1.58 using the following and the issue no longer occurs:
$url = "https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/2.1.58/win32-x64/claude.exe"
Invoke-WebRequest -Uri $url -OutFile "$env:USERPROFILE\.local\bin\claude.exe"
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗