create-react-app icon indicating copy to clipboard operation
create-react-app copied to clipboard

Nothing but error messages

Open latesha-carter opened this issue 1 year ago • 1 comments

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

latesha-carter avatar Sep 08 '24 01:09 latesha-carter

Hey! What kind of errors are you getting?

MrRob0t404 avatar Sep 11 '24 03:09 MrRob0t404

Hey! did you guys solved it .

Suhansa-code avatar Oct 18 '24 08:10 Suhansa-code

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

Subham11258 avatar Oct 28 '24 07:10 Subham11258

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. image

Using another port, 4000, solve the problem, but it is I think just a temporary measure. What is a fundamental solution ?

iwashitahga avatar Nov 10 '24 03:11 iwashitahga