首页 > 解决方案 > 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**

标签: react-nativereact-native-androidreact-native-iosexpo

解决方案


只需在项目文件夹中运行 expo upgrade 然后 expo start -c


推荐阅读