Subhadeep
Subhadeep

Reputation: 257

Cannot install node packages using npm

While installing any node package using npm, I am getting the following error:

C:\Users\460785>npm install express -g npm ERR! Windows_NT 6.1.7601 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "express" "-g" npm ERR! node v6.2.1 npm ERR! npm v3.9.3 npm ERR! code MODULE_NOT_FOUND

npm ERR! Cannot find module 'github-url-from-git' npm ERR! npm ERR! If you need help, you may report this error at: npm ERR!
https://github.com/npm/npm/issues

npm ERR! Please include the following file with any support request: npm ERR! C:\Users\460785\npm-debug.log

I have tried to reinstall node.js again and again, one with stable version and also the latest version. Still, I am getting the same error.

Upvotes: 3

Views: 1097

Answers (1)

Colin Rauch
Colin Rauch

Reputation: 515

It seems like multiple persons on github had a similiar problem.

As the user GregWoods stated there you might want to uninstall node.js completly and delete all remaining files in your Program Files Folder and then install again.

Upvotes: 2

Related Questions