简体   繁体   English

为什么 expo 使 Internet 无法正常工作?

[英]Why does expo makes Internet doesn't work?

I'm currently learning React Native.我目前正在学习 React Native。 For this, I'm using a wsl (Ubuntu) and expo for testing on my android device.为此,我使用 wsl (Ubuntu) 和 expo 在我的 android 设备上进行测试。 So my problem is very weird and I haven't found anything similar on the Internet.所以我的问题很奇怪,在网上也没有找到类似的东西。 So whenever I need to test my app on my device I type expo start and everything works fine.所以每当我需要在我的设备上测试我的应用程序时,我都会输入 expo start ,一切正常。 After about 15min I cannot use Internet anymore: when I want to visit a website it says "This website cannot be reached", the error code is ERR_CONNECTION_FAILED (Google Chrome but same thing with other web browsers).大约 15 分钟后,我无法再使用互联网:当我想访问一个网站时,它显示“无法访问此网站”,错误代码为 ERR_CONNECTION_FAILED(谷歌浏览器,但与其他 web 浏览器相同)。 I know this is weird.我知道这很奇怪。 This only happens when I work with React Native.这只发生在我使用 React Native 时。 It might be something about nodejs I don't know I really don't understand the link between Internet and Expo.可能是关于nodejs的东西我不知道我真的不明白Internet和Expo之间的联系。

I tried to reinstall nodejs npm and expo, this didn't change anything.我试图重新安装nodejs npm和expo,这并没有改变任何东西。

Thank you for your help.谢谢您的帮助。

As per https://github.com/expo/expo-cli/issues/99根据https://github.com/expo/expo-cli/issues/99

1 - WIN+R -> services.msc 2 - Find LxssManager 3 - Right-click -> Restart 1 - WIN+R -> services.msc 2 - 找到 LxssManager 3 - 右键单击 -> 重启

sadly this kills the expo environment, and issue repeats, until WSL fixes its issues, using CMD is the only viable choice with Expo on Windows as of now (March 2020) sadly this kills the expo environment, and issue repeats, until WSL fixes its issues, using CMD is the only viable choice with Expo on Windows as of now (March 2020)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM