Claude Code: bash: claude: command not found
The installation finished, but the directory that holds the claude executable isn't on your shell's PATH, or the shell hasn't reloaded PATH yet. The exact message, why Claude Code prints it, and the fix.
Updated November 23, 2026 · Checked against Any version. macOS zsh prints 'zsh: command not found: claude'; Windows CMD prints ''claude' is not recognized as an internal or external command'., reproduced in EnvHaven 1.9.0
The message
bash: claude: command not found
What it means
The installation finished, but the directory that holds the claude executable isn’t on your shell’s PATH, or the shell hasn’t reloaded PATH yet. With npm installs, the global bin directory of the Node version you installed into may be missing from PATH, for example under nvm or Homebrew.
Fix
- Open a new terminal, or run
source ~/.bashrc(source ~/.zshrcon zsh), so the installer’s PATH change takes effect. - The native installer puts claude in ~/.local/bin; check it’s there with
ls -la ~/.local/bin/claudeand add that directory to PATH if it’s missing. - If you installed with npm, run
npm prefix -gand make sure its bin directory is on PATH. - Or reinstall with the native installer:
curl -fsSL https://claude.ai/install.sh | bash.
In an EnvHaven workspace
No: EnvHaven has built-in support for Claude Code, on the PATH in every workspace.
Where this comes from
This message was produced by Claude Code (Any version. macOS zsh prints ‘zsh: command not found: claude’; Windows CMD prints ”claude’ is not recognized as an internal or external command’.) itself, in a throwaway EnvHaven 1.9.0 container, on 2026-11-23; the text above is copied from that output.