React-native@0.26.3 requires peer-to-peer interaction @ 15.0.2, but none of them were installed

I am trying to customize the reaction to my native language. 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 

Please let me know how I can fix it.

+4
source share
2 answers

Setting the reaction should fix the error

 npm install react --save 

Alternatively, you can try updating your react-native installation. react-native now v0.30.0

 npm update react-native 
+6
source

Some steps that worked for me:

 1. watchman watch-del-all 2. rm -rf node_modules 3. npm install react@15.0.2 --save 4. npm install react@15.1.0 --save 5. npm install 6. rm -fr $TMPDIR/react-* 7. npm start -- --reset-cache 
0
source

Source: https://habr.com/ru/post/1240213/


All Articles