Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nothing but error messages #13670

Open
latesha-carter opened this issue Sep 8, 2024 · 4 comments
Open

Nothing but error messages #13670

latesha-carter opened this issue Sep 8, 2024 · 4 comments

Comments

@latesha-carter
Copy link

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

@MrRob0t404
Copy link

Hey! What kind of errors are you getting?

@Suhansa-code
Copy link

Hey! did you guys solved it .

@Subham11258
Copy link

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

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

@iwashitahga
Copy link

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants
@MrRob0t404 @Subham11258 @iwashitahga @latesha-carter @Suhansa-code and others