skip to Main Content

I am trying to develop react with MacBook now.

The following error occurs when you use the create-react-app. command.

enter image description here

Please help me solve this problem.

Maybe the development environment is completed using react??

3

Answers


  1. Run this command, hopefully, It will resolve your issue.

    sudo npm install -g create-react-app

    Login or Signup to reply.
  2. I think Nodejs is not installed correctly.Nodejs must be installed to download and run React dependencies.

    You can download:
    https://nodejs.org/en

    Then, restart your computer

    and then, you can use react dependencies:

    npx create-react-app your-application-name
    

    or

    sudo npm install -g create-react-app
    

    If you still get the error try this:

    npm create vite@latest
    
    Login or Signup to reply.
  3. I think you should avoid using create-react-app (according to this PR). Here you can find some good alternatives.

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