sudo npm audit给了我这样的错误 --
npm audit report
ansi-regex >2.1.1 <5.0.1
严重程度:中度
chalk/ansi-regex中的低效正则表达式的复杂性 - https://github.com/advisories/GHSA-93q8-gq69-wqmw
可通过
npm audit fix
修复
node_modules/npm/node_modules/cli-table3/node_modules/ansi-regex
node_modules/npm/node_modules/string-width/node_modules/ansi-regex
strip-ansi 4.0.0 - 5.2.0
依赖于脆弱的ansi-regex版本
node_modules/npm/node_modules/string-width/node_modules/strip-ansi
string-width 2.1.0 - 4.1.0
Depends on vulnerable versions of strip-ansi
node_modules/npm/node_modules/string-width
3个中等严重程度的漏洞
要解决所有问题,请运行。
npm审计修复
**我也曾试过
sudo npm审计修复
而我得到的结果是完全一样的。
npm WARN 审核修复 ansi-regex@5.0.0 node_modules/npm
/node_modules/cli-table3/node_modules/ansi-regex
npm WARN audit fix ansi-regex@5.0.0 是一个捆绑依赖的
npm WARN audit fix ansi-regex@5.0.0 npm@8.4.1 at node_modules/npm
npm WARN audit fix ansi-regex@5.0.0 它不能被自动修复。
npm WARN audit fix ansi-regex@5.0.0 检查npm软件包的更新情况。
npm WARN audit fix ansi-regex@3.0.0 node_modules/npm/node_modules/string-width/node_modules/ansi-regex
npm WARN审计修复 ansi-regex@3.0.0 是一个捆绑的依赖性的
npm WARN审计修复ansi-regex@3.0.0 npm@8.4.1 at node_modules/npm
npm WARN audit fix ansi-regex@3.0.0 它不能被自动修复。
npm WARN audit fix ansi-regex@3.0.0 检查npm软件包的更新情况。
npm WARN audit fix strip-ansi@4.0.0 node_modules/npm/node_modules/string-width/node_modules/strip-ansi
npm WARN审计修复 strip-ansi@4.0.0 是一个捆绑的依赖性的
npm WARN审计修复strip-ansi@4.0.0 npm@8.4.1 at node_modules/npm
npm WARN audit fix strip-ansi@4.0.0 它不能被自动修复。
npm WARN audit fix strip-ansi@4.0.0 检查npm软件包的更新情况。
npm WARN audit fix string-width@2.1.1 node_modules/npm/node_modules/string-width
npm WARN审计修复 string-width@2.1.1 是一个捆绑的依赖性的
npm WARN审计修复string-width@2.1.1 npm@8.4.1 at node_modules/npm
npm WARN audit fix string-width@2.1.1 它不能被自动修复。
npm WARN audit fix string-width@2.1.1 检查npm软件包的更新情况。
最新的、经过审计的317个包裹在3s内完成
28个套餐正在寻找资金
运行npm fund
了解详情
npm audit report
ansi-regex >2.1.1 <5.0.1
严重程度:中度
chalk/ansi-regex中的低效正则表达式的复杂性 -https://github.com/advisories/GHSA-93q8-gq69-wqmw
可通过npm audit fix
修复
node_modules/npm/node_modules/cli-table3/node_modules/ansi-regex
node_modules/npm/node_modules/string-width/node_modules/ansi-regex
strip-ansi 4.0.0 - 5.2.0
依赖于脆弱的ansi-regex版本
node_modules/npm/node_modules/string-width/node_modules/strip-ansi
string-width 2.1.0 - 4.1.0
Depends on vulnerable versions of strip-ansi
node_modules/npm/node_modules/string-width