npm i 执行后爆出很多安全警告,found ×× vulnerabilities(×low,× moderate,×high),Peer Dependencies冲突.
Dependencies
A rewrite of the old legacy software "depends.exe" in C# for Windows devs to troubleshoot dll load dependencies issues.
项目地址:https://gitcode.com/gh_mirrors/de/Dependencies

·
这个问题主要是因为nodejs版本和你项目中配置的依赖的版本发生冲突造成的。
我看了很多人的博客,反正那些方法对我来说都没啥效果。他这个警告会自带提示信息,具体建议你执行的代码我忘了,大概意思就是你用它提示的指令对你对你生成的node_modules文件进行修复,有两次提示,按他给的指令执行后,如果还不能修复完所有的modules,那我建议你跟我一样,直接换源,它这个nodejs是国外开发的,所以执行的时候调的是国外的那个网站的资源,你给它换成国内的,去安装淘宝镜像,使用这个可以自动下载修复依赖。
npm install --registry=http://registry.npmmirror.com
然后指令会发生变化,由npm变成cnpm,需要手动设置一下:
npm install -g cnpm --registry=http://registry.npmmirror.com
最后把你之前生成失败的node_modules目录整个删了,重新使用指令生成,记得别用npm i了,前面加个c, 换成cnpm i




A rewrite of the old legacy software "depends.exe" in C# for Windows devs to troubleshoot dll load dependencies issues.
最近提交(Master分支:24 天前 )
1997a400 - 3 年前
2f423539 - 3 年前
更多推荐
所有评论(0)