使用 npm 安装包的问题

发布于 2025-01-10 18:49:26 字数 2470 浏览 0 评论 0原文

大家晚安。

当我尝试安装软件包时,出现您可以在下面看到的错误,并且没有安装任何内容。

up to date, audited 488 packages in 4s

13 packages are looking for funding
  run `npm fund` for details

8 vulnerabilities (5 moderate, 3 high)

To address all issues, run:
  npm audit fix

Run `npm audit` for details.

所以我做了 npm 审计修复,但这就是它给我带来的结果。

PS C:\Users\Elève\OneDrive - Conseil régional Grand Est - Numérique Educatif\Bureau\wolfyz-bot> npm audit fix
npm WARN audit fix [email protected] node_modules/npm/node_modules/json-schema
npm WARN audit fix [email protected] is a bundled dependency of
npm WARN audit fix [email protected] [email protected] at node_modules/npm
npm WARN audit fix [email protected] It cannot be fixed automatically.

(我没有放置所有警告,因为它太长了。就在温暖下方,这就是我所拥有的)

    Depends on vulnerable versions of strip-ansi
    node_modules/npm/node_modules/string-width

glob-parent  <5.1.2
Severity: high
Regular expression denial of service - https://github.com/advisories/GHSA-ww39-953v-wcq6
fix available via `npm audit fix`
node_modules/glob-parent
  chokidar  1.0.0-rc1 - 2.1.8
  Depends on vulnerable versions of glob-parent
  node_modules/chokidar
    live-server  >=1.2.0
    Depends on vulnerable versions of chokidar
    node_modules/live-server

json-schema  <0.4.0
Severity: moderate
json-schema is vulnerable to Prototype Pollution - https://github.com/advisories/GHSA-896r-f27r-55mw
fix available via `npm audit fix`
node_modules/npm/node_modules/json-schema
  jsprim  0.3.0 - 1.4.1 || 2.0.0 - 2.0.1
  Depends on vulnerable versions of json-schema
  node_modules/npm/node_modules/jsprim

8 vulnerabilities (5 moderate, 3 high)

To address all issues, run:
  npm audit fix 

总之,当我进行 npm 审核修复时,它建议我进行 npm 审核修复,我做了... 你能帮我吗?

Goodnight all.

When I try to install a package I get the error you can see below and nothing installs.

up to date, audited 488 packages in 4s

13 packages are looking for funding
  run `npm fund` for details

8 vulnerabilities (5 moderate, 3 high)

To address all issues, run:
  npm audit fix

Run `npm audit` for details.

So I did npm audit fix but here is what it gets me.

PS C:\Users\Elève\OneDrive - Conseil régional Grand Est - Numérique Educatif\Bureau\wolfyz-bot> npm audit fix
npm WARN audit fix [email protected] node_modules/npm/node_modules/json-schema
npm WARN audit fix [email protected] is a bundled dependency of
npm WARN audit fix [email protected] [email protected] at node_modules/npm
npm WARN audit fix [email protected] It cannot be fixed automatically.

(I do not put all the Warn because it would be too long. Just below the warm, here is what I have)

    Depends on vulnerable versions of strip-ansi
    node_modules/npm/node_modules/string-width

glob-parent  <5.1.2
Severity: high
Regular expression denial of service - https://github.com/advisories/GHSA-ww39-953v-wcq6
fix available via `npm audit fix`
node_modules/glob-parent
  chokidar  1.0.0-rc1 - 2.1.8
  Depends on vulnerable versions of glob-parent
  node_modules/chokidar
    live-server  >=1.2.0
    Depends on vulnerable versions of chokidar
    node_modules/live-server

json-schema  <0.4.0
Severity: moderate
json-schema is vulnerable to Prototype Pollution - https://github.com/advisories/GHSA-896r-f27r-55mw
fix available via `npm audit fix`
node_modules/npm/node_modules/json-schema
  jsprim  0.3.0 - 1.4.1 || 2.0.0 - 2.0.1
  Depends on vulnerable versions of json-schema
  node_modules/npm/node_modules/jsprim

8 vulnerabilities (5 moderate, 3 high)

To address all issues, run:
  npm audit fix 

In summary, when I do npm audit fix, it advises me to do npm audit fix which I did...
Can you help me please?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

倚栏听风 2025-01-17 18:49:26

正如输出所示,它无法自动修复它:

npm WARN audit fix [email protected] It cannot be fixed automatically.

您可以忽略它,或者手动更新 json-schema 并查找兼容性问题。

As the output states, it cannot automatically fix it:

npm WARN audit fix [email protected] It cannot be fixed automatically.

You can either ignore it, or manually update json-schema and look for compatibility issues.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文