Skip to content

[BUG] claude install removes claude binary #21061

@dabstractor

Description

@dabstractor

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Yeah, I searched the existing issues. But you have over 5000 issues, I'm not claude. I searched, I'm sure there's one in there somewhere, but I couldn't find it.

So here's my bug report:

❯ npm i -g @anthropic-ai/claude-code

added 3 packages in 998ms

2 packages are looking for funding
  run `npm fund` for details

❯ which claude
/home/dustin/.local/bin/claude

❯ claude install

✔ Claude Code successfully installed!

  Version: 2.1.19

  Location: ~/.local/bin/claude


  Next: Run claude --help to get started

❯ which claude
claude not found

❯ ls ~/.local/bin/claude
ls: cannot access '/home/dustin/.local/bin/claude': No such file or directory

Arch linux btw. The binary is not in the location the output says it's in. It could be somewhere else on my drive, but it's not anywhere on my $PATH.

What Should Happen?

Oh come on...

Error Messages/Logs

Given.

Steps to Reproduce

Given.

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

latest/none

Platform

Anthropic API

Operating System

Other Linux

Terminal/Shell

Other

Additional Information

Other? No tmux or alacritty or any of the terminals people use outside of macos on your list? You realize people hate apple, right? I have made a major mistake by not switching to opencode sooner.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:packagingbugSomething isn't workinghas reproHas detailed reproduction stepsplatform:linuxIssue specifically occurs on LinuxstaleIssue is inactive

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions