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

Dim*_*ima 8 npm angular

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

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

                   === npm audit security report ===                        


                             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                             
Run Code Online (Sandbox Code Playgroud)
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                             
Run Code Online (Sandbox Code Playgroud)
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                             
Run Code Online (Sandbox Code Playgroud)
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                             
Run Code Online (Sandbox Code Playgroud)
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                             
Run Code Online (Sandbox Code Playgroud)
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
Run Code Online (Sandbox Code Playgroud)

Gon*_*eto 10

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
Run Code Online (Sandbox Code Playgroud)

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

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

  • 该解决方案仅适用一段时间,并且再次出现相同的问题 (2认同)