我希望能够在Expo
(点击保存后用于测试 React Native 代码的 iPhone 应用程序)上测试我的应用程序,但我似乎无法克服我遇到的这个错误Terminal
。我之前运行过我的应用程序Expo
没有任何问题,但现在尝试在我的应用程序中包含导航器后,我得到了一个错误。
首先我这样做:
$ npm i -g create-react-native-app
$ create-react-native-app my-project
$ cd my-project`
然后我想在我的应用程序中包含一个导航器,所以我继续这样做:
npm install --save react-navigation
在那之后,为了Expo
跑步,我做了:
npm start
当我这样做时npm start
,我得到这个错误Terminal
:
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! Mestro@0.1.0 start: `react-native-scripts start`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the Mestro@0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in: