我是靠谱客的博主 粗犷白羊,最近开发中收集的这篇文章主要介绍WARN React-native@0.35.0 requires a peer of react@~15.3.1 but none was installed.,觉得挺不错的,现在分享给大家,希望可以做个参考。
概述
react-native init的时候出现问题:
报错信息
npm WARN React-native@0.35.0 requires a peer of react@~15.3.1 but none was installed.
解决方案:
方法一:npm install -save react@~15.3.1
方法二:在package.json中可以添加依赖
"dependencies": {
"react": "^15.3.2",
"react-native": "^0.35.0",
"react-native-orientation": "^1.17.0",
"react-native-scrollable-tab-view": "^0.6.0",
}
最后
以上就是粗犷白羊为你收集整理的WARN React-native@0.35.0 requires a peer of react@~15.3.1 but none was installed.的全部内容,希望文章能够帮你解决WARN React-native@0.35.0 requires a peer of react@~15.3.1 but none was installed.所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复