React-native@0.26.3要求对等方为react@15.0.2,但没有安装 [英] React-native@0.26.3 requires a peer of react@15.0.2 but none was installed
本文介绍了React-native@0.26.3要求对等方为react@15.0.2,但没有安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试为本机做出反应。但每当我更新文件时,它都会给出错误
I am trying to set up for the react native. but whenever I update files it gives m error
enoent ENOENT: no such file or directory, open 'React Native/package.json'
npm WARN react-native@0.26.3 requires a peer of react@15.0.2 but none was installed.
npm WARN React Native No description
npm WARN React Native No repository field.
npm WARN React Native No README data
npm WARN React Native No license field.
MacBook-Pro:React Native$ npm info react dist-tags.latest
请让我知道如何解决。
推荐答案
安装react会解决错误
Installing react should fix the error
npm install react --save
此外,你可能会尝试升级 react-native
安装。 react-native
为 v0.30.0
现在
Also, you may try upgrading your react-native
install. react-native
is as v0.30.0
now
npm update react-native
这篇关于React-native@0.26.3要求对等方为react@15.0.2,但没有安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文