最新消息:20181230 VPS服务器已从Linode换到腾讯云香港,主题仍用朋友推荐的大前端D8

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

React Native crifan 454浏览 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
> rn_rse@0.1.0 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,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
65 queries in 0.063 seconds, using 9.40MB memory