最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【未解决】ReactNative中npm run ios出错:Error: Couldn’t connect to the server, check your internet connection

React Native crifan 2176浏览 0评论

折腾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.

The request timed out – when attempting to open app · Issue #149 · react-community/create-react-native-app

packager error: Error starting tunnel · Issue #256 · expo/expo

`npm run ios` error: Failed to start simulator: Process exited with non-zero code: 22 · Issue #169 · react-community/create-react-native-app

Failed to start simulator Couldn’t connect to the server

确保翻墙的ss没有全局代理:问题依旧。

那就设置ss的全局代理,再试试:问题依旧。

注:

此处一直是开着iOS Simulator的

Run iOS script fails because of Simulator code 60 · Issue #62 · react-community/create-react-native-app

去试试:

且Restart了,结果:问题依旧。

转载请注明:在路上 » 【未解决】ReactNative中npm run ios出错:Error: Couldn’t connect to the server, check your internet connection

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
84 queries in 0.157 seconds, using 22.08MB memory