Reputation: 47
Each time I create a react up I get:
8 vulnerabilities (2 moderate, 6 high)
I tried to fix it with npm audit fix
, but it didn't change anything. I tried to fix it with npm audit fix --force
, but it became worse - it showed me 162 vulnerabilities.
Is it critical to fix it? If yes, then how can I do it?
Upvotes: 0
Views: 142
Reputation: 16
create-react-app has sunset and react-scripts are now deprecated, there is currently no option to setup a CRA app without the vulnerabilities, you should use another alternative to create your app, like vite:
npm create vite@latest my-react-app -- --template react
You can find more about how to setup an app using vite here: Vite scaffolding
Upvotes: 0