0

How can I run React-Native apps by Intellij IDEA.

Metro Bundler can't listen on port 8081

when I change port, the same error given

  • similar to https://stackoverflow.com/questions/47597641/react-native-cli-error-on-start-up – lena May 14 '18 at 17:56
  • the same error, still :(( –  May 14 '18 at 18:24
  • did you try checking what process is using the port? `netstat -vanp tcp | grep 8081`. also, can you check if the issue persists when using basic react native apps generated by cli? – lena May 14 '18 at 18:41
  • 1
    bro it is running, I change the port 8088 it is work :)) –  May 14 '18 at 18:43

2 Answers2

0

If you are really changing the port, you shouldn't receive the same error. This error generally happens because there is a process already running on this door, if you are using Linux, try fuser -k 8081/tcp, that will kill the process running on that door.

Bruno Mazzardo
  • 1,586
  • 1
  • 15
  • 27
0

in my case, just remove the 'start React Native Bundler' before launch task.

some other script will start the bundler too, so 8081 port is in use.

ngn999
  • 620
  • 1
  • 10
  • 17