How to fix these vulnerabilities by manual review?

Viewed 270
1 Answers

The audit command will install semver-major updates when the --force flag is used. This is not default behavior because it may introduce breaking changes in updated dependencies.

npm audit fix --force

Alternatively, you can manually update a specific dependency with an install command.

npm install uglifyjs-webpack-plugin@latest --save-dev 

In this particular case, uglifyjs-webpack-plugin is deprecated and suggests terser-webpack-plugin as an alternative. You may want to use that package instead.

npm uninstall uglifyjs-webpack-plugin --save-dev
npm install terser-webpack-plugin --save-dev
Related