PATH
PATH is a list of folders in which the terminal looks for a program by the name of a command. If the program’s folder is not in the list, the terminal answers “command not found”. After installing Claude Code on macOS and Linux, you sometimes need to add the ~/.local/bin folder to PATH and open a new terminal window.
Frequently asked questions
Why does the terminal not find claude after installation?
Most often the installation worked but the terminal does not know about the new folder. First open a new terminal window; if the message stays, add ~/.local/bin to PATH. Source: code.claude.com/docs/en/troubleshoot-install.What does the claude --version command confirm?
Only that the program is found in PATH and starts. It does not check sign-in, the network or file permissions.Source: Wikipedia: PATH (variable)
Claude Code docs: installation errors
Read more: Claude Code: install and pricing, plans and availability by country
Where it appears · 1
- Claude Code · Harness