gpt4 book ai didi

angular - 如何解决这些漏洞? (npm审核修复程序无法修复这些漏洞)

转载 作者:行者123 更新时间:2023-12-03 12:30:37 26 4
gpt4 key购买 nike

我的项目有6个严重漏洞,我不知道如何解决。 npm审核修复失败。请帮助我解决此问题。

我正在将https://www.npmjs.com/package/toastr安装到我的项目中,并且在安装后显示了漏洞。我不知道有什么联系。
=== npm审核安全报告===

                             Manual Review                                  
Some vulnerabilities require your attention to resolve

Visit https://go.npm.me/audit-guide for additional guidance


High Machine-In-The-Middle

Package https-proxy-agent

Patched in >=3.0.0

Dependency of @angular/cli [dev]

Path @angular/cli > @schematics/update > pacote >
make-fetch-happen > https-proxy-agent

More info https://npmjs.com/advisories/1184
High            Machine-In-The-Middle                                         

Package https-proxy-agent

Patched in >=3.0.0

Dependency of @angular/cli [dev]

Path @angular/cli > pacote > make-fetch-happen >
https-proxy-agent

More info https://npmjs.com/advisories/1184
High            Machine-In-The-Middle                                         

Package https-proxy-agent

Patched in >=3.0.0

Dependency of @angular/cli [dev]

Path @angular/cli > @schematics/update > pacote >
npm-registry-fetch > make-fetch-happen > https-proxy-agent

More info https://npmjs.com/advisories/1184
High            Machine-In-The-Middle                                         

Package https-proxy-agent

Patched in >=3.0.0

Dependency of @angular/cli [dev]

Path @angular/cli > pacote > npm-registry-fetch >
make-fetch-happen > https-proxy-agent

More info https://npmjs.com/advisories/1184
High            Machine-In-The-Middle                                         

Package https-proxy-agent

Patched in >=3.0.0

Dependency of protractor [dev]

Path protractor > browserstack > https-proxy-agent

More info https://npmjs.com/advisories/1184
High            Machine-In-The-Middle                                         

Package https-proxy-agent

Patched in >=3.0.0

Dependency of protractor [dev]

Path protractor > saucelabs > https-proxy-agent

More info https://npmjs.com/advisories/1184

最佳答案

1)npm i-保存开发npm-force-resolutions

2)将此添加到您的package.json

“决议”:{
“https-proxy-agent”:“^ 3.0.0”
}

3)让npm-force-resolutions做到这一点

rm -r node_modules
npx npm-force-resolutions
npm install

4)重新运行您的审核npm审核。

字体: https://github.com/TooTallNate/node-https-proxy-agent/issues/84#issuecomment-543884972

关于angular - 如何解决这些漏洞? (npm审核修复程序无法修复这些漏洞),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58457748/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com