I am trying to develop react with MacBook now.
The following error occurs when you use the create-react-app. command.
Please help me solve this problem.
Maybe the development environment is completed using react??
I am trying to develop react with MacBook now.
The following error occurs when you use the create-react-app. command.
Please help me solve this problem.
Maybe the development environment is completed using react??
3
Answers
Run this command, hopefully, It will resolve your issue.
sudo npm install -g create-react-app
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:
or
If you still get the error try this:
I think you should avoid using
create-react-app
(according to this PR). Here you can find some good alternatives.