Claude Command Not Found
How to fix command not found: claude by checking PATH, install location, terminal restart, and conflicting Claude Code installations.
If claude returns command not found or is not recognized, the install directory is probably not in your shell PATH, the terminal session has not picked up the new PATH, or a conflicting old install is being resolved first.
Quick Fix
- Restart the terminal and run
claude --version. - Check whether
claudeis visible withwhich -a claudeon macOS/Linux orwhere.exe claudeon Windows. - Confirm the install directory is in PATH.
- Remove old conflicting installs if multiple
claudebinaries appear. - Use the official troubleshooting page for the exact shell-specific PATH command.
What To Check
On macOS and Linux, focus on ~/.local/bin. On Windows, focus on the user-level .local\bin location and confirm you are using PowerShell, CMD, Git Bash, or WSL consistently.