无法修复全局包裹漏洞

发布于 2025-01-27 14:13:20 字数 910 浏览 2 评论 0原文

  • 当我运行npm Update -G时,我在屏幕截图上获得了巨大的漏洞列表
  • 。我尝试安装npm-check-updates。我对其进行了更新,现在ncu -g给了我“所有全局软件包都是最新的”。 NPM审核修复NPM审核修复程序-force什么也不做。 但是,所有漏洞仍然在这里。我该怎么办? 这是我拥有的全球安装软件包列表:
  • ,这是npm审核修复程序的输出npm审核修复 - force当我在安装全局软件包的目录中:

如果我删除package-lock.jsonnpm审核修复程序根本不运行,希望我在此全局包中初始化npm带有package-json.ly的目录。这样做之后,它使我从上方提供了输出。

如何修复这些漏洞?还是我根本需要关心它们?

  • When I run npm update -g, I get this enormous list of vulnerabilities on the screenshot below.
  • I tried to globally update npm to the latest version, and I tried to install npm-check-updates. I updated something with it, and now ncu -g gives me 'All global packages are up to date'.
    npm audit fix and npm 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:
    enter image description here
  • And here's the output of npm audit fix and npm audit fix --force while I'm in the directory where the global packages are installed:
    enter image description here

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文