Answer: See "Verify your PATH" for the fix on each platform; on Windows, if the error started right after Claude Code updated, see restoring `claude.exe` from its backup. Status: Confirmed Entry: tool/claude-code/troubleshooting/fix-command-not-found Revision: 2 Digest: sha256:dca55a382efdf385 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:06:01Z Last changed: 2026-11-18T12:20:52Z (Windows update case: — → restore `claude.exe` from its backup) Last verified: 2026-11-20T12:25:59Z Next check: 2026-11-21T12:25:59Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of fix | Verify your PATH | [1] | 2026-11-20 Windows update case | restore `claude.exe` from its backup | [1] | 2026-11-20 Sources: [1] Anthropic. "Troubleshoot installation and login". https://code.claude.com/docs/en/troubleshoot-install.md Role: primary. Accessed: 2026-11-20T12:25:59Z Quote: "Otherwise, see [Verify your PATH](#verify-your-path) for the fix on each platform." (Supports: fix) Quote: "On Windows, if the error started right after Claude Code updated, see [restore `claude.exe` from its backup](#claude-exe-missing-after-an-update-on-windows)." (Supports: Windows update case) Published: 2026-11-20T04:10:58Z Snapshot SHA-256: aa7df0be88ff6484ef82b97531d3db9732447c09b1b5ed4c68d54092632cbbe8 (captured 2026-11-20T12:25:59Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. Cross-check: not-available at 2026-11-20T12:25:59Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:25:59Z Last attempt: 2026-11-20T12:25:59Z Notes and limitations: Extracted automatically from a single official source (section "`command not found: claude` after installation"). Related: https://latestn.com/tool/claude-code/troubleshooting/fix-commands-path-not-found How do I fix the "commands path not found" error when building a Claude Code plugin? https://latestn.com/tool/claude-code/troubleshooting/fix-garbled-text-integrated-terminal How do I fix garbled or corrupted text in an editor's integrated terminal when using Claude Code? https://latestn.com/tool/claude-code/troubleshooting/fix-high-cpu-memory-usage How do I fix high CPU or memory usage in Claude Code? https://latestn.com/tool/claude-code/troubleshooting/fix-broken-settings-file How do I fix a broken Claude Code settings file? https://latestn.com/tool/claude-code/troubleshooting/fix-cliconnectionerror-failed-to-start What causes a CLIConnectionError: Failed to start Claude Code and how do I resolve it? https://latestn.com/tool/claude-code/troubleshooting/fix-clinotfounderror How do I fix the CLINotFoundError when using the Claude Code Agent SDK? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-18T12:20:52Z | changed | Windows update case: — → restore `claude.exe` from its backup | [1] 2026-11-18T12:20:52Z | changed | Windows update fix: restore `claude.exe` from its backup → — | [1] 2026-11-13T03:06:01Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/troubleshooting/fix-command-not-found/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/troubleshooting/fix-command-not-found POST: https://latestn.com/dispute/tool/claude-code/troubleshooting/fix-command-not-found with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/troubleshooting/fix-command-not-found?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I fix 'command not found: claude' after installing Claude Code? Revision 2, last verified 2026-11-20T12:25:59Z. https://latestn.com/tool/claude-code/troubleshooting/fix-command-not-found (accessed 2026-11-21T09:54:16Z). @misc{LatestN_tool_claude_code_troubleshooting_fix_command_not_found_r2, title = {How do I fix 'command not found: claude' after installing Claude Code?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/troubleshooting/fix-command-not-found}}, note = {Revision 2; digest sha256:dca55a382efdf385; last verified 2026-11-20T12:25:59Z; accessed 2026-11-21T09:54:16Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/troubleshooting/fix-command-not-found