Unverified60% confidenceSolutionExact time
The "not recognized as an internal or external command" error when executing the claude command is caused by the installation path not being added to the system PATH environment variable.
2
Sources
60%
Confidence
Medium-term (~90 days)
Relevance
7/25/2026
First Seen
Valid until: 10/23/2026
Sources
Claude Code入门实战:安装配置与三种工作模式详解
Related Claims
UnverifiedIf typing gemini results in a "command not found" prompt, the most likely cause is that the global installation path has not been added to the system environment variable PATH, which can be resolved by restarting the terminal or confirming that the npm global bin directory is in PATH.71% similarUnverifiedPaths declared in plugin commands within marketplace entries that point outside the plugin directory are now directly rejected with a path traversal error67% similarUnverifiedThe contents of the PATH environment variable, when read by a system call (such as execvp), do not go through the shell's expansion process, so a ~ in PATH is treated as an ordinary character-based directory.66% similarUnverifiedThe root cause of ~ sometimes working and sometimes failing in PATH is that it can only be expanded when some intermediate link happens to invoke the shell to handle it.64% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/615467API
curl https://kongchang.com/api/v1/knowledge/claims/615467MCP
get_claim(id=615467)