npm WARN react-native-maps@0.14.0 requires a peer of react@>=15.4.0 but none was installed

install  the  react-native     here comes a  questions ::

npm WARN react-native@0.41.2 requires a peer of react@~15.4.0 but none is installed. You must install peer dependencies yourself.

 

  HOW TO SOLVE THIS PROBLEM~~~~~:::

 

Deleted node_module directory from the project

  1. npm cache clean
  2. Modified package.json with: "react":"~15.4.1"; "react-native":"0.42.3"; "react-test-renderer":"15.4.1"
  3. npm install all module
  4. npm install
  5. npm i react-native-maps@0.12.5 --S
  6. react-native link react-native-maps

Once I do this, it's successfully able to link the android and ios react-native-modules to the project.

posted @ 2018-06-07 12:34  mmx8088  阅读(796)  评论(0编辑  收藏  举报