React Native - Port 8081 already in use, packager is either not running or not running correctly Command /bin/sh failed with exit code 2

后端 未结 12 1217
眼角桃花
眼角桃花 2020-12-13 11:01

I\'m trying to get up and running with React Native and I am seeing the message below in Xcode:

Port 8081 already in use, packager is either not running

12条回答
  •  悲&欢浪女
    2020-12-13 11:29

    My problem was the Wifi DNS setup..

    i. Go to Settings-> Network.

    ii. Select the connected Wifi, click Advance.

    iii. Select DNS, you might have set your DNS server to 8.8.8.8 (God knows your intention ;) ). Delete it and set it to the default 192.168.1.1. Click OK.

    iv. Run the react-native run-ios in terminal and it works.

提交回复
热议问题