Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

react-native ERROR Metro Bundler can't listen on port 8081 errorno 11

Tags:

react-native

enter image description here

react-native start --port=8088 not wokring

like image 265
anil sidhu Avatar asked Jul 25 '18 19:07

anil sidhu


People also ask

What port does Metro run on?

The Metro bundler runs on port 8081. If another process is already using that port, you can either terminate that process, or change the port that the bundler uses.

What is Metro bundler in react-native?

Metro is a development platform for React Native. This project acts as a JavaScript bundler; it manages assets, caches builds and performs hot module reloading. Metro focuses on improving the developer experience for the React Native community.


1 Answers

I found the answer of this question. Actually my port 8081 is already running so need to use these command

lsof -i :8081 

now you will get a list of Process id (PID) and you need to kill them with below command

kill -9 <PID>  
like image 173
anil sidhu Avatar answered Nov 12 '22 14:11

anil sidhu