When I run "npm start" to run a React app , it doesn't give any errors but hangs forever instead

Scarlett Louis

I have already run "npm install" before this and all the necessary dependencies have been installed.

I've also tried uninstalling the old version of NodeJS and installing the latest version but it's still not working.

A browser window with the React app should pop up.

My package.json file looks like this:

{
  "name": "test",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "add": "^2.0.6",
    "bootstrap": "^4.1.3",
    "react": "^16.6.3",
    "react-bootstrap": "^0.32.4",
    "react-dom": "^16.6.3",
    "react-redux": "^5.1.1",
    "react-router-dom": "^4.3.1",
    "react-scripts": "2.1.1",
    "react-select": "^2.1.1",
    "redux": "^4.0.1",
    "yarn": "^1.12.3"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  },
  "eslintConfig": {
    "extends": "react-app"
  },
  "browserslist": [
    ">0.2%",
    "not dead",
    "not ie <= 11",
    "not op_mini all"
  ],
  "proxy": "http://localhost:57111/"
}
Dinesh Pandiyan

There may be various reasons for the url to not automatically open up in a browser but we will know whether the server started or not by manually opening the url in the browser.

Usually the server is started in port 3000 in localhost. So the URL to access your site will be http://localhost:3000 by default when you use create-react-app.

Try opening the site manually at http://localhost:3000

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

React page doesn't change live in browser when I run Npm Start

Why doesn't npm start run electron app?

React App: Why I get an error when I try to run npm start script?

How to run "npm start" run forever

I just cloned a react app to my local computer from github, but when I go to run an npm start on it, I get this error:

Can I run index.html with React without npm start and npx create-react-app?

Firebase Deploy | You need to enable JavaScript to run this app. | 'npm start' works but 'firebase serve' doesn't

npm start command not working, when I try to run my React application

Why is npm start (after create-react-app) failing to run?

can't run "npm start"

Why doesn't this run forever?

"npm start" doesn't work on any react-js project

Node JS error when I run 'npm start', maybe KrakenJS?

I can't run any react app with iOS simulator

How do I define this predicate so that it doesn't run forever

I'm trying to run my code and it's not working, but it doesn't give any error

my app does not have any errors when it builds, however, it stops working when I run it on my phone

Is it possible to run React project without npm start?

grunt-react task just hangs when I try to run it

Karma doesn't run any test (0 of 0 Errors)

when I run this code below, it doesn’t give me True or False

uglifyjs - hangs when run with any options

Jest doesn't run -- hangs indefinitely

How npm start works, it should be npm run start? (Create React App)

React npm start doesn't work after create-react-app

whenever i run npm start on my react it gives an error. Image below

Stopping Heroku from running npm start + what to run instead?

I am trying to run npm start in my terminal, but it isn't working

Android Studio: lots of errors when I run my app