[BUG] Claude Code installer places `claude.exe` in bin/ on Linux, install script does not create working symlink
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?
Bug: Claude Code installer places claude.exe in bin/ on Linux, install script does not create working symlink
Environment
- OS: Fedora Linux
- Shell: bash
- Install method:
curl -fsSL https://claude.ai/install.sh | bash - Claude Code version: 2.1.173
Steps to reproduce
- Run the official install script:
curl -fsSL https://claude.ai/install.sh | bash - Installer reports success:
✔ Claude Code successfully installed! Location: ~/.local/bin/claude - Run
which claude
Expected behaviorclaude is available on PATH after install.
Actual behavior
No claude binary exists in ~/.local/bin/. The installer creates no symlink or wrapper despite reporting success.
Root cause: the binary installed to ~/.local/lib/node_modules/@anthropic-ai/claude-code/bin/ is named claude.exe (not claude or claude.js), so any symlink or wrapper targeting claude.js is dangling.
Workaround
rm ~/.local/bin/claude # if a dangling symlink was created
ln -s ~/.local/lib/node_modules/@anthropic-ai/claude-code/bin/claude.exe ~/.local/bin/claude
hash -r
Additional notes
A previous install's node_modules directory was left intact by the installer, which may contribute to confusion during reinstall. The install script should either name the binary consistently across platforms or create the correct symlink for the actual binary name present.
What Should Happen?
Installing claude should install claude.
Error Messages/Logs
jesse@fedora:~/work/diffusion-pipeline$ rm -rf ~/.local/bin/claude
jesse@fedora:~/work/diffusion-pipeline$ which claude
/usr/bin/which: no claude in (/home/jesse/go/bin:/home/jesse/go/bin:/home/jesse/.local/bin:/home/jesse/bin:/home/jesse/.cargo/bin:/usr/local/bin:/usr/bin)
jesse@fedora:~/work/diffusion-pipeline$ curl -fsSL https://claude.ai/install.sh | bash
Setting up Claude Code...
✔ Claude Code successfully installed!
Version: 2.1.173
Location: ~/.local/bin/claude
Next: Run claude --help to get started
⚠ Setup notes:
● @anthropic-ai/claude-code executables removed, but node_modules directory was left intact for safety. You may manually
delete it later at: /home/jesse/.local/lib/node_modules/@anthropic-ai/claude-code
✅ Installation complete!
jesse@fedora:~/work/diffusion-pipeline$ which claude
/usr/bin/which: no claude in (/home/jesse/go/bin:/home/jesse/go/bin:/home/jesse/.local/bin:/home/jesse/bin:/home/jesse/.cargo/bin:/usr/local/bin:/usr/bin)
Steps to Reproduce
rm -rf ~/.local/bin/claudecurl -fsSL https://claude.ai/install.sh | bashwhich claude- go spend tokens figuring out what's wrong
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.165 (Claude Code)
Platform
Other
Operating System
Other Linux
Terminal/Shell
Other
Additional Information
API not applicable
Fedora Linux
Alacritty
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗