【发布时间】:2020-08-26 08:02:23
【问题描述】:
我正在按照Documentation 中提供的步骤为 React Native 设置环境。
我已经安装了 create-react-native-app 和 expo-cli 。
此外,我还使用expo init 创建了一个应用程序。
现在,当我尝试使用 yarn start 或 npm start 运行应用程序时,出现以下错误:
Error: spawn powershell ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
at onErrorNT (internal/child_process.js:415:16)
at process._tickCallback (internal/process/next_tick.js:63:19)
error Command failed with exit code 1.
我该如何解决?这与powershell有关吗? (但我也在命令提示符中得到它)
附:我正在使用 Windows 8、Expo 3.24.2、yarn 1.22.4、节点 10.15.3
【问题讨论】:
标签: react-native npm expo yarnpkg