[BUG] misleading warning about ~/.local/bin

Status Closed — not planned
Maintainer reply None cached
Activity 8 comments · opened Sep 14, 2025 · closed Feb 9, 2026

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?

Screenshot says it all

<img width="619" height="939" alt="Image" src="https://github.com/user-attachments/assets/c57e5711-fed6-4802-ac53-754170a0aedd" />

/status:

 Claude Code v1.0.113
  L Session ID: redacted

 Working Directory 
  L /Users/redacted

 Installation 
  L Native installation exists but ~/.local/bin is not in your PATH
  L Add it by running: export PATH="~/.local/bin:$PATH"

 IDE Integration • /config
  ✔  Connected to WebStorm extension
  ⚠  Error installing WebStorm plugin: Plugin source missing
     Please restart your IDE or try installing from
     https://docs.anthropic.com/s/claude-code-jetbrains

 Account • /login
  L Login Method: Claude Pro Account
  L Organization: redacted Organization
  L Email: redacted

 Memory • /memory
  L project: CLAUDE.md

 Model • /model
  L Sonnet Sonnet 4 for daily use

What Should Happen?

The warning should not show, since it's incorrect.

Error Messages/Logs

n/a

Steps to Reproduce

start claude code

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

v1.0.113

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

8 Comments

msheiny · 1 year ago

Thanks for logging this - I also get this warning on 2.0.8 on zsh 5.9 on Linux

github-actions[bot] · 10 months ago

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

marcelstoer · 9 months ago

I'm also seeing this for the latest version on macOS. Claude definitely isn't installed in ~/.local/bin.

❯ which claude
/usr/local/bin/claude
❯ ls -al /usr/local/bin/claude
lrwxr-xr-x  1 marcelstoer  admin  45 Dec 23 11:38 /usr/local/bin/claude -> 
/usr/local/Caskroom/claude-code/2.0.76/claude
❯ cd ~/.local/bin
❯ ls -al
total 0
drwxr-xr-x  2 marcelstoer  staff   64 Nov 12 10:50 .
drwxr-xr-x  7 marcelstoer  staff  224 Jan  5 12:55 .. 

I tried to be clever and deleted said folder. Now it complains that the folder ain't there.

installMethod is native, but directory /Users/marcelstoer/.local/bin does not exist
breun · 9 months ago

I'm also running into this issue when installing Claude Code via MacPorts, which installs the claude binary as /opt/local/bin/claude (or more generally ${prefix}/bin/claude, because MacPorts allows customizing its installation prefix).

Claude Code works fine, but claude doctor tells me to add ~/.local/bin to my PATH, even though ~/.local/bin doesn't even exist.

This can also be reproduced without using MacPorts:

❯ mkdir some-directory
❯ export PATH="$HOME/some-directory:$PATH"
❯ curl --output some-directory/claude https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/2.1.2/darwin-arm64/claude
❯ chmod +x some-directory/claude
❯ claude doctor

 Diagnostics
 └ Currently running: native (2.1.2)
 └ Path: /Users/breun/some-directory/claude
 └ Invoked: /Users/breun/some-directory/claude
 └ Config install method: native
 └ Auto-updates: disabled (DISABLE_AUTOUPDATER set)
 └ Search: OK (bundled)
 Warning: Native installation exists but ~/.local/bin is not in your PATH
 Fix: Run: echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc then open a new terminal or
 run: source ~/.zshrc

 Press Enter to continue…

claude doctor should not recommend adding a non-existent directory to the user's PATH.

I _do_ think it would be a good recommendation to tell the user to add the directory claude is in to the user's PATH when the the directory that claude is in is not yet in the user's PATH. It might be good to change the current implementation for this doctor check to this. So, in the example above claude doctor could recommend adding /Users/breun/some-directory to the user's PATH if it wasn't added.

github-actions[bot] · 8 months ago

This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.

marcelstoer · 8 months ago

Should be re-openend unless fixed.

marcindulak · 8 months ago

This issue was closed incorrectly despite recent human comments. This behavior of the bot is reported at https://github.com/anthropics/claude-code/issues/16497. Please upvote that issue, so maybe it gets noticed.

github-actions[bot] · 7 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.