简体   繁体   English

Npm 未安装

[英]Npm not installed

I recently downloaded node.js from nodejs.org and installed it correctly on windows, from gitbash I ran node -v,it gave me a version number,but when I ran npm -v, I get bunch of error message like these;我最近从 nodejs.org 下载了 node.js 并将其正确安装在 windows 上,从 gitbash 我运行 node -v,它给了我一个版本号,但是当我运行 ZBB30E85411B56DF41296726AB445DC8F 时,得到了这些错误消息

Internal/module/cjs/loader.js:330
Throw err;

Error: cannot find module 'C:\Program Files\nodejs\node_modules\npm\node_modules\nom-registry-fetch\node_modules\fighy-pudding\index.js'. 
Please verify that the package.json has a valid "main" entry

And other bunch of errors...和其他一堆错误......

How do I fix these please请问我该如何解决这些问题

Well, i tried alot of replies, still ended up the same.好吧,我尝试了很多回复,但最终还是一样。 I reinstalled windows and installed the same nodejs.exe i downloaded and npm was installed...lol我重新安装了 windows 并安装了我下载的相同 nodejs.exe 并安装了 npm ......哈哈

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM