I am using Debian 9.3. (stretch) I cannot run "npm" commands.
Output for node -v
bash: node: command not found
Output for nodejs -v
v4.8.2
Output for npm -v
bash: npm: command not found
I'm a newbie on Debian and I can't understand what's happening.
- I already reinstall Node.js
- I already tried following the steps of the Official Page.
- I already ran apt-get install npm
Output E: Unable to locate package npm
.
- I was at Debian Testing and have the same error when I was there.
Thanks for read and help
- Melt
The npm command not found error js server, which you can download from the nodejs.org website. Once you downloaded and installed Node. js, open the terminal and run the npm -v command. Once you see the npm version, you should be able to run the npm install command again.
The Npm command not found error can appear when you install or upgrade npm. On Windows, the cause of this error could be that a PATH or system variable is not correctly set. The error can also occur if you do not have npm or Node. js installed, have an outdated version, or have permission issues.
I had same problem with debian then I tried this and problem solved.
Run this is command
curl -L https://npmjs.org/install.sh | sudo sh
check version
npm -v
You should see this after doing these steps
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With