Claude Codegeneral

claude: command not found After Installing Claude Code

The install finished but the terminal says claude is not found. How to check the install, fix the PATH, and avoid duplicate installs.

2 min read Updated Applies to Claude Code

What is going on

You installed Claude Code and typed claude, and the terminal says command not found: claude.

The install is usually fine. The terminal just cannot see the program.

Error messages you might see

command not found: claude
zsh: command not found: claude
'claude' is not recognized as an internal or external command

Common causes

  1. The folder that holds the program is not on your PATH (for the standard installer this is usually ~/.local/bin).
  2. You installed with npm and npm's global bin folder is not on your PATH.
  3. The terminal was open before the install and has not picked up the change.
  4. Two copies are installed (for example through the installer, Homebrew and npm) and they conflict.

How to fix it

These steps come from public troubleshooting guides. Check the official setup page for the install command that matches your system.

  1. Open a new terminal window and try claude --version again.
  2. See where it is: command -v claude, and which -a claude to list every copy.
  3. If it was installed with the standard installer, add ~/.local/bin to your PATH in your shell profile, then open a new terminal.
  4. If it was installed with npm, find npm's global folder with npm prefix -g and add its bin folder to PATH.
  5. If you have more than one copy, keep one and remove the others.
  6. Run claude doctor to check the install.

Getting help takes about a minute

No hiring, no back and forth. A real person looks at your app.

  1. 1

    Describe it

    Tell us what you need in plain words. You don't have to be technical or have an account to start.

  2. 2

    Free 15-minute call

    A verified developer calls you. Many tasks are sorted right there, and it costs nothing.

  3. 3

    Pay after you approve

    If there is more to do, you get one fixed price up front. You pay only once you are happy.

Get help

Real people, reviewed by hand

Developers who do this every day

Every developer is approved by our team before they can take a task. Describe yours and the first one who is free picks it up.

Get help

Questions

Do I need to install it again?

Usually not. Fix the PATH first. If you have several copies, remove the extra ones and keep one.

What does claude doctor do?

It checks the health of your install and points out problems such as a missing PATH entry.

Keep reading

Can't fix it yourself?
Real developers can help.

Get help