How to fix these vulnerabilities? (npm audit fix fails to fix these vulnerabilities)
1) npm i --save-dev npm-force-resolutions
2) Add this to your package.json
"resolutions": { "https-proxy-agent": "^3.0.0" }
3) Let npm-force-resolutions do it's thing
rm -r node_modules
npx npm-force-resolutions
npm install
4) re-run your audit npm audit.
Font: https://github.com/TooTallNate/node-https-proxy-agent/issues/84#issuecomment-543884972
Fixes BUILD problems and general installation problems:
package.json
{
...
"scripts": {
"resolve-install": "npx npm-force-resolutions && npm install"
},
"resolutions": {
"https-proxy-agent": "^3.0.0"
}
}
Then instead of npm install
just run in cmd
or Dockerfile
:
npm run resolve-install