I am new to React and NodeJS. I am trying to create a React app using the command npx create-react-app my-app
, but every time I run this command, I get the error shown below about MySQL
does react need MySQL to function and how do i get rid of this error?
Thank you.
Here are some of the things I have tried:
- reinstalled node and npm multiple times, even used nvm.
- added MySQL bin directory to PATH.
- ran the command
create-react-app
withoutnpx
. - tried
npm create vite@latest
.
3
Answers
I ran npm cache verify and it worked
Plz try it!
-npx create-react-app ./my-app
-npm cache clean –force
-yarn create react-app my-app
-npm list -g –depth 0
-npm install -g npm@latest
from shaiming…
remove spaces from your file and folder names other wise it will throw errors. or create new react app in another folder then it will work perfectly