create-react-app creates app with vulnerabilities, audit fix adds more

39 Views Asked by At

I'm trying to create a new react app, I've used

npx create-react-app my-app

to create it, and right from start it tells me that it has vulnerabilities, I run

npm audit fix --force

and it just adds 100 more, run fix again, and it's back to the beginning and so on in a loop.

1

There are 1 best solutions below

0
Kearney Taaffe On

At this point in time CRA (create-react-app) is NOT the recommended way to create a react app. ViteJs is. take a look at these 2 links

This is the code you can download to start your app