Submit a toolSubmit

claude: command not found after install. Fix your PATH

Installation usually succeeded. Add ~/.local/bin (Windows: %USERPROFILE%\.local\bin) to PATH, open a new terminal, then confirm with which or where. Short answer: 5 steps. 1) Confirm the binary exists before you reinstall; 2) See whether the install folder is already on PATH; 3) Add ~/.local/bin (or .local\bin) permanently; 4) Reload editor terminals and check for conflicting installs; 5) Verify with doctor, then resume work.

Last updated: · This page is the decision checklist; the tools list for “Fix Claude Code “command not found”” is a separate URL.

The problem: Installation usually succeeded. Add ~/.local/bin (Windows: %USERPROFILE%\.local\bin) to PATH, open a new terminal, then confirm with which or where.

How do I add ~/.local/bin to PATH when claude: command not found?

  1. Confirm the binary exists before you reinstall

    On macOS/Linux check `ls -la ~/.local/bin/claude`. On Windows PowerShell check `Test-Path "$env:USERPROFILE\.local\bin\claude.exe"`. If the file is missing, you only installed the VS Code extension (it does not put `claude` on PATH)—run the standalone installer from Anthropic’s setup docs. Troubleshoot install: https://code.claude.com/docs/en/troubleshoot-install

  2. See whether the install folder is already on PATH

    macOS/Linux: `echo $PATH | tr ':' '\n' | grep -Fx "$HOME/.local/bin"`. Windows PowerShell: `$env:PATH -split ';' | Select-String '\.local\\bin'`. No output means PATH is the problem, not a broken download.

  3. Add ~/.local/bin (or .local\bin) permanently

    zsh: `echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc` then `source ~/.zshrc`. bash: same line into `~/.bashrc` (or `~/.bash_profile` on some macOS setups). Windows PowerShell: append `$env:USERPROFILE\.local\bin` to your User PATH with `[Environment]::SetEnvironmentVariable`, then open a new terminal. Official steps: https://code.claude.com/docs/en/troubleshoot-install

  4. Reload editor terminals and check for conflicting installs

    Integrated terminals in VS Code/Cursor inherit the editor’s environment—quit and reopen the editor after PATH changes. Run `which -a claude` (or `where.exe claude` on Windows). If several binaries appear, remove or rename stale npm/Homebrew copies so the native `~/.local/bin/claude` wins.

  5. Verify with doctor, then resume work

    In a fresh shell run `claude --version` and `claude doctor`. If updates fail with Release verification errors instead, rerun `claude update` / `claude install` per the same troubleshooting page—not a PATH fix. General troubleshooting index: https://code.claude.com/docs/en/troubleshooting

Which tools are best to fix Claude Code “command not found”?

Troubleshoot installation and login

Official PATH fixes for command not found / not recognized after a native install.

Set up Claude Code

Standalone install steps when only the editor extension is present.

Troubleshooting index

Routes install/PATH issues vs runtime problems; points to claude doctor.

Claude Code

Product entry point for CLI install options.

All tools for “Fix Claude Code “command not found”” →

Related fixes

See also AI tools launched today on the daily board.