npm WARN react-dom@15.5.4需要一个react @^15.5.4的同行,但没有安装

时间:2017-04-25 14:45:43

标签: reactjs npm react-native npm-install

我正在开发一个react-native应用程序,在安装react-native-maps之后我遇到了一些问题,所以我删除了该项目并从bitbucket克隆了以前的版本;当我运行npm install时,屏幕上会出现以下错误:

npm WARN react-dom@15.5.4 requires a peer of react@^15.5.4 but none was installed. npm WARN react-native@0.41.2 requires a peer of react@~15.4.0 but none was installed. npm WARN react-static-container@1.0.1 requires a peer of react@^0.13.0 || ^0.14.0 || ^15.0.0 but none was installed.

并在模拟器上显示以下屏幕: ERROR SCREEN

其他信息:

rereact-native-cli: 2.0.1 react-native: 0.43.4 platform: IOS Development Operating System: MacOS Sierra

有关如何解决问题的想法吗?

0 个答案:

没有答案