[BUG] ~/.local/bin is not in your PATH warning even though I am installed through npm

Resolved 💬 4 comments Opened Aug 28, 2025 by kramar99 Closed Sep 1, 2025

Environment

  • Platform (select one):
  • [x] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: <!-- specify -->
  • Claude CLI version: 1.0.93<!-- output of claude --version -->
  • Operating System: Mac<!-- e.g. macOS 14.3, Windows 11, Ubuntu 22.04 -->
  • Terminal: Terminal App<!-- e.g. iTerm2, Terminal App -->

Bug Description

<!-- A clear and concise description of the bug -->
Getting warning messages inside Claude after starting, even though I am installed and running through npm:
~/.local/bin is not in your PATH

Steps to Reproduce

  1. install Claude Code with npm <!-- First step -->
  2. start Claude<!-- Second step -->
  3. See error <!-- And so on... -->

Expected Behavior

<!-- What you expected to happen -->
No warning messages

Actual Behavior

<!-- What actually happened -->
Get these warning messages

```
● Claude command not found at /Users/<username>/.local/bin/claude
● ~/.local/bin is not in your PATH
● Add it by running: export PATH="~/.local/bin:$PATH"

## Additional Context
<!-- Add any other context about the problem here, such as screenshots, logs, etc. -->

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗