折腾ReactNative时,之前对于:
› Press a to open Android device or emulator, or i to open iOS emulator.
去按i,不行。
现在去参考:
Getting Started – React Native
去npm run ios,结果出错:
➜ rn_rse npm run ios > [email protected] ios /Users/crifan/dev/dev_root/xxx > react-native-scripts ios 10:03:41: Starting packager… 10:03:52: Starting simulator… 10:04:26: Failed to start simulator: Error: Couldn’t connect to the server, check your internet connection. Exiting… |
npm run ios Error: Couldn’t connect to the server, check your internet connection.
packager error: Error starting tunnel · Issue #256 · expo/expo
Failed to start simulator Couldn’t connect to the server
确保翻墙的ss没有全局代理:问题依旧。
那就设置ss的全局代理,再试试:问题依旧。
注:
此处一直是开着iOS Simulator的
去试试:
且Restart了,结果:问题依旧。
转载请注明:在路上 » 【未解决】ReactNative中npm run ios出错:Error: Couldn’t connect to the server, check your internet connection