-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
localhost:3000 refused to connect #9448
Comments
Hey @ariffadhillah , |
is there a solution so i can run the npm/yarn start on my application and can connect to localhost |
Seems like the problem comes from your start scripts, the react server didn't start |
Thank you so much Judicaelandria, |
glad it helped :) |
I am facing the same issue, the error message is localhost refused to connect |
Hi @Namyalg |
This started happening to me after upgrading to react-scripts 5. I rolled back to 4 and it works now. |
Same for me, nothing in express logs:
When checking open TCP ports via |
AWESOME!!! I will check it out soon! THANK YOU!! |
I solved that issue by removing the npm cache, for some reason after cache cleaning dev server works. |
For me, the issue turned out to be related to having mode code on a file share. When I move the code to the hard disk, it worked. |
HI guys. this is a proxy issue. if you upgraded the react-script to 5.0.0 Here is the solution. Solution 1:
If the above solution does not help you then the next one you have to follow This appears to be an issue with your proxy settings since when you're running create-react-app <app_name> yarn is unable to resolve the necessary dependencies to set up your new react project, namely: react, react-dom, and react-scripts. Maybe you could try setting your proxy settings so you can install the necessary libraries create-react-app needs. According to yarn's documentation: "For backward compatiibilty with npm, Yarn allows passing down npm configuration via environment variables." So maybe you could try the following and seeing if this helps resolve your issue:
where the <proxy_url> is changed to work with your appropriate proxy. Then you can tell yarn to ignore ssl if necessary. Note: Use at your own discretion.
npm config set sets npm environment variables which yarn can also utilize. In this particular case we are setting the proxy environment variables. Now simply try running the create-react-app command again and it should be able to proceed with setting up the new react project for you. Hopefully that helps! |
Nope, I tried everything above and nothing works. My mentor will visit me to see what is happening |
I am facing the same issue. Please check this out : https://github.com/DevRish/martcart/issues/1 I have described my problem completely there... |
I had this same issue, I was able to fix this by refactoring my
More info can be found here: https://create-react-app.dev/docs/proxying-api-requests-in-development/ |
I have the same issue, but I don't think it is related to proxy configuration. I have removed proxy configuration in package.json, I think the |
This was driving me insane when trying to upgrade a project from react-scripts 4 to 5. @alancarltaylor's fix worked. THANK YOU. |
make sure that the npm is active to make it active open terminal and select the respective file by using the command cd filename and run the command npm start |
Open prompt and select the folder using command cd filename and run the command npm start and also check your node version |
Bro, exact same content is showing in CMD also. What to do bro? @hemanthnallamothu7777 |
thank you I know why I'm stuck for weeks with projects! Thank you! |
I run a yarn start on my application, but can't connect to localhost
I use
windows 10 64bit,
node v14.7.0
npm v6.14.7
and
yarn v1.22.4
but when I run other applications everything runs smoothly
The text was updated successfully, but these errors were encountered: