当我想安装
@react-google-maps/api
时,却出现错误。
我无法完成安装。
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/formik
npm ERR! formik@"^2.4.5" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer formik@">= 0.11.x < 2" from [email protected]
npm ERR! node_modules/react-native-formik
npm ERR! react-native-formik@"^1.7.8" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/formik
npm ERR! peer formik@">= 0.11.x < 2" from [email protected]
npm ERR! node_modules/react-native-formik
npm ERR! react-native-formik@"^1.7.8" 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!
哪个版本有冲突?怎么解决呢?
尝试删除package.json中的
react-native-formik