skip to Main Content

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

npm error meesage

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 without npx.
  • tried npm create vite@latest.

3

Answers


  1. I ran npm cache verify and it worked

    Login or Signup to reply.
  2. 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…

    Login or Signup to reply.
  3. 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

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search