📦Command not found
zsh: command not found: npm
The terminal doesn't know that program. It isn't installed, or you didn't reopen the terminal after installing it.
🤔 Why does it happen?
- Programs like Node.js (npm) or Git aren't installed yet
- They're installed, but you didn't reopen the terminal
- The command is misspelled
🔧 Try this
- For npm, install the LTS version from nodejs.org
- After installing, fully close the terminal (or VS Code) and open it again
- Check that it's installed with node -v or git --version
🤖 Ask your AI like this
I get the error below in the terminal. My computer is a [Mac/Windows]. Please walk me through installing the program I need step by step, and tell me how to check it was installed correctly. [Paste the full error here]
Replace the [ ] parts with your own situation, and paste the error with a few extra lines before and after it.
Related terms
Other errors in this group
- Module not found
Module not found: Can't resolve - Package version conflict (ERESOLVE)
npm ERR! ERESOLVE unable to resolve dependency tree - Port already in use
EADDRINUSE: address already in use - Types don't match (TypeScript)
Type 'X' is not assignable to type 'Y' - No permission, so install failed (EACCES)
EACCES: permission denied - Node version doesn't match
The engine "node" is incompatible with this module - Out of memory (heap out of memory)
JavaScript heap out of memory - Can't use import statements (module settings)
SyntaxError: Cannot use import statement outside a module - Build failed on code checks (ESLint)
Failed to compile — ESLint errors - File or folder not found (ENOENT)
ENOENT: no such file or directory