CarGuo / GSYGithubAPP

超完整的React Native项目,功能丰富,适合学习和日常使用。GSYGithubApp系列的优势:我们目前已经拥有Flutter、Weex、ReactNative、kotlin 四个版本。 功能齐全,项目框架内技术涉及面广,完成度高,配套文章,适合全面学习,对比参考。开源Github客户端App,更好的体验,更丰富的功能,旨在更好的日常管理和维护个人Github,提供更好更方便的驾车体验Σ( ̄。 ̄ノ)ノ。同款Weex版本 : https://github.com/CarGuo/GSYGithubAppWeex 、同款Flutter版本 : https://github.com/CarGuo/GSYGithubAppFlutter 、原生 kotlin 版本 https://github.com/CarGuo/GSYGithubAppKotlin
https://juejin.im/user/582aca2ba22b9d006b59ae68/posts
Apache License 2.0
2.38k stars 427 forks source link

npm install 报错 求教!!! #98

Closed anwent closed 3 years ago

anwent commented 3 years ago

截屏2020-11-20 下午2 59 25

初学RN 环境已经配好 在执行npm install 时报错如下,请教下要怎么搞。。。

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: GSYGithubApp@0.0.1
npm ERR! Found: react-native@0.61.3
npm ERR! node_modules/react-native
npm ERR!   react-native@"0.61.3" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react-native@">=0.57 <0.60" from @react-native-community/netinfo@2.0.10
npm ERR! node_modules/@react-native-community/netinfo
npm ERR!   @react-native-community/netinfo@"^2.0.0" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! See /Users/zh/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/zh/.npm/_logs/2020-11-20T06_59_18_139Z-debug.log
anwent commented 3 years ago

@CarGuo 大佬有空请指点下

CarGuo commented 3 years ago
image

如上图所示,我这边看着正常啊

anwent commented 3 years ago

解决了 谢谢