npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @react-native-community/async-storage@1.12.1
npm ERR! Found: react@17.0.2
npm ERR! node_modules/react
npm ERR! react@"^17.0.2" from the root project
npm ERR! peer react@">=16.3.0" from @callstack/react-theme-provider@3.0.7
npm ERR! node_modules/@callstack/react-theme-provider
npm ERR! @callstack/react-theme-provider@"^3.0.7" from react-native-paper@4.12.4
npm ERR! node_modules/react-native-paper
npm ERR! react-native-paper@"^4.12.4" from the root project
npm ERR! 25 more (@react-native-community/masked-view, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.8" from @react-native-community/async-storage@1.12.1
npm ERR! node_modules/@react-native-community/async-storage
npm ERR! @react-native-community/async-storage@"^1.12.1" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: react@16.14.0
npm ERR! node_modules/react
npm ERR! peer react@"^16.8" from @react-native-community/async-storage@1.12.1
npm ERR! node_modules/@react-native-community/async-storage
npm ERR! @react-native-community/async-storage@"^1.12.1" 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.
uj5u.com熱心網友回復:
該包@react-native-community/async-storage
被重命名為@react-native-async-storage/async-storage
當它被移出@react-native-community
范圍時。
在您的package.json
檔案中,替換@react-native-community/async-storage
為更新的@react-native-async-storage/async-storage
包!
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/508429.html
上一篇:如何使用`npmrunbuild:production`而不是使用`npmrunbuild--production`構建我的Angular應用程式?
下一篇:捕獲url視圖