You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I have worked with React projects, and I have 9 vulnerabilities when I run npm command npm audit command
And when I run the command npm audit fix, it doesn't fix those vulnerabilities.
I have googled and found that some answers.
For example:
To fix optimize-css-assets-webpack-plugin pulgin: I need to update to version 5.0.6 from 5.0.4
But how can this npm module is only listed in package-lock.json (as in the required npm module of react-scripts) but not in package.json
Please help me how to upgrade optimize-css-assets-webpack-plugin npm module?
And is there any other way to fix these vulnerabilities?
The text was updated successfully, but these errors were encountered:
Hi, Liam
I have had the same error and tried to find out the solution.
I have found that yarn is better than npm in dependency management, so I have used yarn to install the npm package and add the following code to the package.json file.
And if you run yarn audit command, you can check the result.
Hi,

I have worked with React projects, and I have 9 vulnerabilities when I run npm command
npm audit
commandAnd when I run the command
npm audit fix
, it doesn't fix those vulnerabilities.I have googled and found that some answers.
For example:
To fix
optimize-css-assets-webpack-plugin
pulgin: I need to update to version 5.0.6 from 5.0.4But how can this npm module is only listed in
package-lock.json
(as in the required npm module ofreact-scripts
) but not inpackage.json
Please help me how to upgrade
optimize-css-assets-webpack-plugin
npm module?And is there any other way to fix these vulnerabilities?
The text was updated successfully, but these errors were encountered: