[Bug] Claude Code update fails when $HOME environment variable is modified
Bug Description
My powershell profile included an alteration to my $HOME variable that changed its path. I discovered this was causing Claude Code to fail to update as well as complain about PATH issues. The original install had worked despite this, and the binary was in the right place, and if Claude Update referenced $USERPROFILE instead it would have been looking in the right place. Interestingly, Claude Doctor reported no issues, aside from informationally displaying that my current version was far behind both the stable and latest versions.
Environment Info
- Platform: win32
- Terminal: windows-terminal
- Version: 2.1.100
- Feedback ID: c35312ad-c3e0-47f0-8d8b-e5f473835459
Errors
Error: EEXIST: file already exists, mkdir 'C:\Users\[username]\OneDrive - [company]\.local\share\claude\versions'
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗