user6702192
user6702192

Reputation: 11

Error while running ‘hello-react’ program in react.js

With lots of issues while installing react.js finally when I thought that issues were resolved and everything is in a good place. I found this as a heartache issue.

Error description Image for reference:

enter image description here

Upvotes: 1

Views: 67

Answers (2)

Viswanatha Swamy
Viswanatha Swamy

Reputation: 817

  1. Please execute the below-mentioned command.

    npx i -g create-react-app

  2. It takes few minutes and displays a message similar to below

    We suggest that you begin by typing:

    cd your-app-name yarn start

    Happy hacking!

  3. cd into the your-app-name folder and execute npm start

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

Upvotes: 0

Garvit Khandelwal
Garvit Khandelwal

Reputation: 84

Whenever you see this error, it means that something went wrong when you installed the dependencies. The proper method to fix this error and install all the dependencies again can be found in this answer. A quick workaround can be to install this specific dependency again using the following npm command:

npm intall react-scripts start

This will help you solve this issue. I still recommend you to install all the dependencies again so that you won't run into such issues later on.

Please mark this answer as accepted if it solves your issue.

Upvotes: 1

Related Questions