反应本地/包和守卫

时间:2018-11-27 15:57:26

标签: react-native

当我尝试使用npm或yarn安装任何软件包时,我的项目出现此错误。

我在命令行出错

react-native run-ios --simulator 'iPad Pro (9.7-inch)'

Found Xcode project JfApp.xcodeproj

Could not find iPad Pro (9.7-inch) simulator

Error: Could not find iPad Pro (9.7-inch) simulator
    at resolve (/Users/jimmyfairly/dev/react/app-react/node_modules/react-native/local-cli/runIOS/runIOS.js:149:13)
    at new Promise (<anonymous>)
    at runOnSimulator (/Users/jimmyfairly/dev/react/app-react/node_modules/react-native/local-cli/runIOS/runIOS.js:134:10)
    at Object.runIOS [as func] (/Users/jimmyfairly/dev/react/app-react/node_modules/react-native/local-cli/runIOS/runIOS.js:106:12)
    at Promise.resolve.then (/Users/jimmyfairly/dev/react/app-react/node_modules/react-native/local-cli/cliEntry.js:117:22)

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! JfApp@0.0.1 ios: `react-native run-ios --simulator 'iPad Pro (9.7-inch)'`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the JfApp@0.0.1 ios 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:
npm ERR!     /Users/jimmyfairly/.npm/_logs/2018-11-27T15_52_55_730Z-debug.log

还有Xcode的错误。

Error watchaman

我尝试通过发布的帮助解决问题,没有任何变化。 我的版本:

npm: 6.2.0
node: v10.9.0
react-native-cli: 2.0.1
react-native: 0.57.7

有人知道如何解决这个问题吗?

0 个答案:

没有答案