使用npm安装程序包时出现问题



晚安。

当我尝试安装一个软件包时,我会收到下面的错误,但没有安装任何软件。

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:UsersElèveOneDrive - Conseil régional Grand Est - Numérique EducatifBureauwolfyz-bot> npm audit fix
npm WARN audit fix json-schema@0.2.3 node_modules/npm/node_modules/json-schema
npm WARN audit fix json-schema@0.2.3 is a bundled dependency of
npm WARN audit fix json-schema@0.2.3 npm@7.24.2 at node_modules/npm
npm WARN audit fix json-schema@0.2.3 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审计。。。你能帮我吗?

由于输出状态,它无法自动修复:

npm WARN audit fix json-schema@0.2.3 It cannot be fixed automatically.

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

最新更新