Dhairya Bhatt
Dhairya Bhatt

Reputation: 9

Can't create and run React Application

I'm trying to run create-react-app but it seems it's not working the way it's supposed to. I'm trying the following command:

  1. create-react-app my-app
  2. cd my-app
  3. npm start

and getting the following errors while trying to run if you could help that'llenter image description here be great

Upvotes: 0

Views: 106

Answers (3)

HDallakyan
HDallakyan

Reputation: 748

Please remove globally create-react-app try this npm remove -g create-react-app

Then just run those commands

npx create-react-app my-app
cd my-app
npm start

Source: https://reactjs.org/docs/create-a-new-react-app.html

Upvotes: 1

Ram Babu
Ram Babu

Reputation: 2862

The log you've shared says, creation is not success and you're using create-react-app version is very old.

Better you use npx which will ensure that you are using the latest version on the fly without any global installation. Try the below command

$ npx create-react-app festudents

Upvotes: 1

warmachine
warmachine

Reputation: 376

Try removing the creat-react-app boilerplate, Then create a new with the following command

npx create-react-app my-app 2

Upvotes: 0

Related Questions