我使用expo init Myprojectname
创建了一个新的Expo项目。当我尝试运行expo start
时,它抛出了一个错误:我尝试从我的Snack Expo运行该项目。它在零食方面也出现了同样的错误。
expo start
Starting project at C:UsersNitishDesktopnitschool
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 Filesnodejsnode.EXE**
** npm: 6.14.4 - C:Program Filesnodejsnpm.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升级,然后expo启动-c