Watch: Fix "zsh: command not found" on Mac Terminal | Vovy
Watch Vovy do it on a Mac: "Terminal keeps saying command not found for npm, what's wrong". Vovy finds why your Mac cannot see a tool, usually a missing PATH line in ~/.zshrc or ~/.zprofile, fixes it, and explains what PATH is.
"Terminal keeps saying command not found for npm, what's wrong"
Vovy finds why your Mac cannot see a tool, usually a missing PATH line in ~/.zshrc or ~/.zprofile, fixes it, and explains what PATH is.
What happens in the video
- Find out if the tool exists: Vovy searches the usual install folders like /opt/homebrew/bin and ~/.nvm to see whether the tool is missing or just hidden.
- Read your PATH: PATH is the list of folders your shell searches for commands. Vovy prints it and highlights which folder is missing.
- Fix your shell profile: Vovy adds the right line to ~/.zprofile or ~/.zshrc, such as the brew shellenv or nvm lines, and removes duplicates left by old installers.
- Install it if truly missing: If the tool is not on your Mac at all, Vovy installs it with the right method, like Homebrew for git or nvm for npm.
- Test in a fresh window: Vovy opens a new Terminal window and runs the command again, then shows a before-and-after card of your PATH.
Read the step-by-step guideLoading...