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 1222
眼角桃花
眼角桃花 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

    I figured out the issue: for some reason I didn't kill the process on port 8081 and it was causing Xcode to fail.

    Solution:

    1. Kill the process on port 8081.
    2. Clean Xcode: Xcode Menu > Product > Clean.
    3. Reopen Xcode.

    Resource:

    React-Native Troubleshooting

提交回复
热议问题