2017-07-18 128 views
0

我尝试使用“create-react-native-app”创建反应本机应用程序,但我没有几个警告。Warning with create-react-native-app

Despiste的这些警告,过程似乎没问题,我得到“快乐黑客!”消息和“纱线”命令列表我可以用来测试我的应用程序,但模拟器无法启动我的应用程序。我想我必须先解决依赖性问题,但是要知道如何正确使用它,因为我只有“create-react-native-app”命令?

warning react-native-scripts > xdl > auth0-js > xtend > [email protected]: 
warning "[email protected]" has unmet peer dependency "[email protected]^0.14.0 || ^15.0.0-0 || ^16.0.0-0". 
warning "[email protected]" has incorrect peer dependency "[email protected]>=15.4.0". 
warning "[email protected]" has incorrect peer dependency "[email protected]>=15.4.0". 
warning "[email protected]" has incorrect peer dependency "[email protected]>=15.3.1". 

感谢, 球

+0

我已经更新了“纱”使用: '冲泡升级yarn' 这有固定的“反应,本机地图”,“反应本地分支”和“洛蒂反应的原生”的警告,但我仍然有第一个2. – Orboo

回答

0

在这里,我怎么有固定我的问题

brew upgrade yarn 
yarn upgrade 
yarn cache clean 

(我知道,不要评判我:)) 然后,

create-react-native-app . 

命令“yarn run ios”效果不错

球,

+0

仅供参考我仍然有这个警告,但应用程序工作正常: '警告react-native-scripts> xdl> auth0-js> xtend> [email protected]:'' – Orboo