Nothing but error messages
I have been trying to create a web page using create react app and I managed to get to npm start however the localhost 3000 cannot open. it fails every time. I'm not sure what I am doing wrong. It also will not process npm install -g create-react-app. I've been working on this for 4 hours and on the verge of tears! HELP
Hey! What kind of errors are you getting?
Hey! did you guys solved it .
You can check for whether the port 3000 is in use.
Windows open powersehell and run netstat -ano | findstr :3000 and note the PID. Then close it from task manager. Linux/Mac Run lsof -i :3000 and terminate any processes using that port with kill -9 <PID>
Run the React app on another port if Port 3000 is problematic
Windows set PORT=3001 && npm start Linux/Mac PORT=3001 npm start
Try clearing npm cache files to resolve issue
For both Windows and Linux/Mac npm cache clean --force
I have this issue too.
npm start seems to be successful on localhost:3000 because it doesn't occur any error message and it shows App running at ~ localhost:3000 ~. However, I cannot open localhost:3000, and there is no application working on port 3000.
Using another port, 4000, solve the problem, but it is I think just a temporary measure. What is a fundamental solution ?