While installing any node package using npm, I am getting the following error:
C:\Users460785円>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/issuesnpm ERR! Please include the following file with any support request: npm ERR! C:\Users460785円\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.
1 Answer 1
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.
-
1After removing node, I found my nodejs folder still had a node_modules folder. I deleted that and also deleted %AppData% npm and npm-cache folders. Reinstalled node and it worked.John H– John H2016年12月28日 10:01:45 +00:00Commented Dec 28, 2016 at 10:01
github-url-from-git
not being found - but there's also reference toexpress
module.npm -v
to see which version is running, or ifnpm
is at least working properly.