无法修复全局包裹漏洞
- 当我运行
npm Update -G
时,我在屏幕截图上获得了巨大的漏洞列表 - 。我尝试安装
npm-check-updates
。我对其进行了更新,现在ncu -g
给了我“所有全局软件包都是最新的”。NPM审核修复
和NPM审核修复程序-force
什么也不做。 但是,所有漏洞仍然在这里。我该怎么办? 这是我拥有的全球安装软件包列表: - ,这是
npm审核修复程序的输出
和npm审核修复 - force
当我在安装全局软件包的目录中:
如果我删除package-lock.json
,npm审核修复程序
根本不运行,希望我在此全局包中初始化npm带有package-json.ly的目录。这样做之后,它使我从上方提供了输出。
如何修复这些漏洞?还是我根本需要关心它们?
- When I run
npm update -g
, I get this enormous list of vulnerabilities on the screenshot - I tried to globally update
npm
to the latest version, and I tried to installnpm-check-updates
. I updated something with it, and nowncu -g
gives me 'All global packages are up to date'.npm audit fix
andnpm audit fix --force
don't do anything.
Yet, all the vulnerabilities are still here. What can I do about it?
Here's list of globally installed packages I have: - And here's the output of
npm audit fix
andnpm audit fix --force
while I'm in the directory where the global packages are installed:
If I delete package-lock.json
, npm audit fix
doesn't run at all and wants me to initialize npm in this global packages directory with package-json.only. After doing so, it gives me the output from above.
How can I fix these vulnerabilites? Or do I need to care about them at all?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论