False positive warning about PATH installation when using shell alias
Environment
- [x] Anthropic API
- [ ] Other: Local installation
Claude CLI version: 1.0.38
Operating System: macOS (Darwin 23.6.0)
Terminal: zsh
Bug Description
Claude Code displays a false positive warning about the local installation not being accessible via PATH, even when the alias is properly configured and functional.
Steps to Reproduce
- Install Claude Code locally using the installer
- Configure shell alias as instructed:
alias claude="/Users/username/.claude/local/claude" - Restart shell or source configuration file
- Run
claude updatecommand - it works correctly - Observe warning message displayed
Expected Behavior
No warning should be displayed when the alias is properly configured and the claude command is accessible.
Actual Behavior
The following warning appears:
Warning: Local installation not accessible via PATH
Fix: Alias already configured but not active. Restart shell or run: source /Users/mleveck/.zshrc
However, running which claude confirms the alias is active:
claude: aliased to /Users/mleveck/.claude/local/claude
Additional Context
The installation checker appears to only verify the binary exists in standard PATH locations and doesn't account for shell aliases. This creates confusion since the suggested fix (restarting shell/sourcing config) has already been completed and the alias is functional.
The warning is purely cosmetic - Claude Code works correctly despite the message.
15 Comments
Seems fixed now. Closing.
@mattlbrr I am seeing the same, on the latest version:
Note: Including the alias makes no difference on my end, I only have one version installed (the local one).
I get this too:
Also seeing this.
reopening because of all the other people facing this with newer versions
getting same issue (removed name from path) :
Claude CLI Diagnostic
Currently running: npm-local (1.0.53)
Path: /usr/local/bin/node
Invoked: /Users/********/.claude/local/node_modules/.bin/claude
Config install method: local
Auto-updates enabled: true
Warning: Local installation not accessible via PATH
Fix: Create alias: alias claude="~/.claude/local/claude"
Had this too. Only thing that shut this warning up was adding
alias claude='~/.claude/local/claude'to my .bashrc _exactly_, with~, not$HOME, and not the absolute path.This is quite unacceptable to enforce. It's simple enough to check if a file is in the $PATH directories...
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
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.
I have the same issue
I also have this issue. Using Ghostty as well.
I have installed claude code on Arch from the AUR. To fix the issue, I just linked /usr/bin/claude to ~/.local/bin/claude:
This shuts up the warning, even if you don't run claude from .local/bin. The file just has to exist.
Same issue here using Ghostty + Fish
Obnoxious change, Anthropic:
got told to run claude install
claude install stuck it in ~/.local/bin/claude pointing to ~/.local/share/claude/versions/<> or something
hash -d claude
claude
warns me it's not in the path
it's not going to be in the path - don't want a standard user owned install dir on my path - major security risk - I have a folder for this purpose and I put things there that I want on my path explicitly.
added a symlink from my folder/claude to the same path in the .local/share dir chain
claude
warns me again
Please provide an option to turn off this warning - it's intrusive and irritating at best. Look at all of the above people unhappy about it - for every one writing something here publicly 10000 others are thinking the same thing.
Socks up Anthropic, you dropped the ball on this one.
Here's what your product had to say on the matter:
For the record a flag is not acceptable - it needs to work cleanly from just
claude