[BUG] Failed Installation has no cleanup logic
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?
When installing Claude Code, an unexpected system crash happened, and the installation failed in the middle. Now, whenever I try to install it again, it fails like this
curl -fsSL https://claude.ai/install.sh | bash
Setting up Claude Code...
✘ Installation failed
Could not install - another process is currently installing Claude. Please try
again in a moment.
Try running with --force to override checks
✅ Installation complete!
The bug: --force mentioned in the above bash block is not supported and doesn't perform any cleanup in the installation bash script - I can't run --force with the curl command.
I tried to manually remove' ~/.claude' using rm -rf ~/.claude and then attempted to install it again using the above command, but it shows the same error. I also restarted my system, and the problem persists.
What Should Happen?
A successful Claude Code installation
Steps to Reproduce
run curl -fsSL https://claude.ai/install.sh | bash
Break it in the middle using a system crash-out - attempt to install it again
Claude Model
None
Is this a regression?
I don't know
Claude Code Version
latest
Operating System
Ubuntu/Debian Linux
Terminal/Shell
default Ubuntu terminal
This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗