# 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

```text
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

1. Open a new terminal, or run `source ~/.bashrc` (`source ~/.zshrc` on zsh), so the installer's PATH change takes effect.
2. The native installer puts claude in ~/.local/bin; check it's there with `ls -la ~/.local/bin/claude` and add that directory to PATH if it's missing.
3. If you installed with npm, run `npm prefix -g` and make sure its bin directory is on PATH.
4. 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.

## Keep reading

- [Claude Code](https://envhaven.com/agents/claude-code)
- [Is Claude Code down?](https://envhaven.com/status/claude-code)
- [Every agent error](https://envhaven.com/errors)

Source: https://envhaven.com/errors/claude-code/command-not-found
