0

I just installed node.js on my centos 7 server, then install react it successfully created my new react app, after that, I run:

npm start

and or serve -s build

but none of these run in my browser.

This site can’t be reached

how can I solve this?

5
  • How you created react app? Commented Jan 28, 2020 at 12:04
  • @MuhammadZeeshan create-react-app homer Commented Jan 28, 2020 at 12:07
  • Try using npx create-react-app homer. That will use the latest react version. Commented Jan 28, 2020 at 12:08
  • I using yarn @MuhammadZeeshan whats the different? Commented Jan 28, 2020 at 12:09
  • you seem to be confusing npm and yarn commands Commented Jan 28, 2020 at 12:22

2 Answers 2

0

enter image description here

If you have sever inside can you try with start debugging of your application

Sign up to request clarification or add additional context in comments.

Comments

0
  1. Stop npm, if you're using yarn

  2. Start the project with command above, inside your project home folder

yarn start

Take some time to learn commands below:

enter image description here

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.