question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

JS server closed immediately!

See original GitHub issue

Hi, I want to use react-native on windows 10 that is new installed, So i flow all instructions on https://facebook.github.io/react-native/docs/getting-started (React Native CLI Quickstart).

But when i use npx react-native run-android the JS server closed immediately!

How can i solve it?

My system info:

    OS: Windows 10 10.0.18363
    CPU: (8) x64 Intel(R) Core(TM) i7-4810MQ CPU @ 2.80GHz
    Memory: 9.97 GB / 15.88 GB
  Binaries:
    Node: 13.3.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.21.1 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
    npm: 6.13.4 - C:\Program Files\nodejs\npm.CMD
  SDKs:
    Android SDK:
      API Levels: 19, 23, 26, 27, 28, 29
      Build Tools: 23.0.1, 26.0.3, 27.0.3, 28.0.3, 29.0.2
      System Images: android-28 | Intel x86 Atom, android-28 | Intel x86 Atom_64, android-28 | Google APIs Intel x86 Atom, android-28 | Google APIs Intel x86 Atom_64, android-28 | Google Play Intel x86 Atom, android-28 | Google Play Intel x86 Atom_64, android-29 | Google APIs Intel x86 Atom
  IDEs:
    Android Studio: Version  3.5.0.0 AI-191.8026.42.35.6010548
  npmPackages:
    react: 16.9.0 => 16.9.0
    react-native: 0.61.5 => 0.61.5

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9

github_iconTop GitHub Comments

2reactions
gokhandoslucommented, Dec 15, 2019

I think this is not an issue about react-native, please search it on stackoverflow.com first. Did you check port 8081 is already in use? Can you share any log about the error?

1reaction
react-native-botcommented, Dec 15, 2019

Thanks for submitting your issue. Can you take another look at your description and make sure the issue template has been filled in its entirety?

👉 Click here if you want to take another look at the Bug Report issue template.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I shutdown a Node.js http(s) server immediately?
The trick is that you need to subscribe to the server's connection event which gives you the socket of the new connection. You...
Read more >
Error Node JS Server Opens and Closes Quickly After React ...
When we run our app by using React-Native Run-Android Command , the node js window will open and closed quickly. Therefore react native...
Read more >
How to terminate a HTTP server in Node.js?
This function is asynchronous, the server is finally closed when all connections are ended and the server emits a 'close' event.
Read more >
HTTP | Node.js v19.3.0 Documentation
When a connection is closed by the client or the server, it is removed from the pool. Any unused sockets in the pool...
Read more >
Let It Crash: Best Practices for Handling Node.js Errors on ...
Now, imagine that your server has many clients connected, and the majority of them have not experienced an error or crashed. How can...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found