Reputation: 659
there are a lot of people here asking the same question and I tried almost all the answers but nothing worked for me ..
The problem is , I can't run any npm command, I installed node js from the windows installer here , and when I write any npm command for example: "npm install" or "npm start" nothing happens, I tried reinstalling and removing paths from environment variables but no luck..
I also tried Upgrading npm on Windows from this link , when I write this command
npm install --global --production npm-windows-upgrade
nothing happens , just like any other npm commands.. I tried also fixing this issue by what was written in the same page here but no luck also :(
What seems to be the problem guys ? thank you so much
Those are the paths that I have in environment variables now:
user variables path: C:\Users\{username}\AppData\Roaming\npm
system variables path: C:\Program Files\nodejs\
Upvotes: 3
Views: 7061
Reputation: 31
In my case it was a problem with a wrong path to a certificate.
My fix:
Upvotes: 2
Reputation: 659
It turned out that there was an old version of Node.js installed on this PC before.
So to solve this problem I had t reinstall and uninstall several versions of Node.js from here until one of then worked..
Upvotes: 1