👌
ClaudeCodeでインストール失敗時の対応
インストール中に失敗して再度試してもうまくいかない時があります。
$ 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.
そのような場合はロックファイルを消して再試行する必要があります。install.shにもエラーメッセージを書いてる箇所がないのですがbugreportとして挙がっていました。
$ rm -rf .local/state/claude/locks
$ curl -fsSL https://claude.ai/install.sh | bash
Setting up Claude Code...
✔ Claude Code successfully installed!
Version: 2.0.76
Location: ~/.local/bin/claude
Next: Run claude --help to get started
⚠ Setup notes:
• Native installation exists but ~/.local/bin is not in your PATH. Run:
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc && source ~/.zshrc
✅ Installation complete!
正常終了しました。
Discussion