Mi proyecto tiene 6 vulnerabilidades de alta gravedad y no tengo idea de cómo solucionarlas. La corrección de auditoría npm falla. Por favor, ayúdame a arreglar esto.
Estaba instalando https://www.npmjs.com/package/toastr en mi proyecto y después de que se haya instalado, se mostraron las vulnerabilidades. No sé si hay alguna conexión. === informe de seguridad de auditoría 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

Soluciona problemas de CONSTRUIR y problemas generales de instalación:
package.jsonLuego, en lugar de
npm installsimplemente corrercmdoDockerfile:fuente
Eche un vistazo a este hilo: ¿Cómo anulo las versiones de dependencia NPM anidadas?
Simplemente reemplace los paquetes correspondientes por los que figuran en la auditoría.
fuente