react-native - React Native : Expo Start Gives EIO: i/o error, read
问题描述
我使用expo init Myprojectname
. 当我尝试运行expo start
它时会抛出一个错误:我尝试从我的 Snack Expo 运行该项目。它也为零食抛出了同样的错误。
expo start
Starting project at C:\Users\Nitish\Desktop\nitschool
EIO: i/o error, read
Set EXPO_DEBUG=true in your env to view the stack trace.
运行结果expo diagnostics
:
Expo CLI 3.18.5 environment info:
** System:**
** OS: Windows 8.1 6.3.9600**
** Binaries:**
** Node: 12.16.2 - C:\Program Files\nodejs\node.EXE**
** npm: 6.14.4 - C:\Program Files\nodejs\npm.CMD**
** IDEs:**
** Android Studio: Version 3.6.0.0 AI-192.7142.36.36.6392135**
** npmPackages:**
** expo: ^37.0.0 => 37.0.7**
** react: 16.9.0 => 16.9.0**
** react-native: https://github.com/expo/react-native/archive/sdk-37.0.0.tar.gz => 0.61.4**
** react-navigation: latest => 4.3.7**
解决方案
只需在项目文件夹中运行 expo upgrade 然后 expo start -c
推荐阅读
- python - Python - 如何计算和记住循环中的出现次数
- intellij-idea - 防止 IntelliJ 自动切换运行/调试配置
- c++ - 如何跟踪外部代码修改类变量的所有位置?
- java - 从 Google Play 服务获取设备位置而不需要启用 wifi 扫描
- javascript - 动态添加的复选框不可选择 - Material Design Lite (MDL)
- java - 没有有用的堆栈跟踪的 Lambda NullPointerException
- javascript - chrome上奇怪的本地存储项目
- c# - 如何将 c++ 可执行文件 p/Invoke 到 C#
- c# - 行数到标签并将标签数加 1
- javascript - 如果登录应用程序,如何重定向