尝试安装 React-native-maps 但出现此错误这是什么意思?
Tried to install React-native-maps and I got this error what does this mean?
航站楼
npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency
tree npm ERR! npm ERR! While resolving: instalawnrn@0.0.1 npm ERR!
Found: react@17.0.1 npm ERR! node_modules/react npm ERR!
react@"17.0.1" from the root project npm ERR! peer react@">= 16.0 ||
< 17.0" from react-native-maps@0.28.0 npm ERR!
node_modules/react-native-maps npm ERR! react-native-maps@"" from
the root project npm ERR! 2 more (react-native, react-native-web)
npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer
react@"17.0.2" from react-dom@17.0.2 npm ERR! node_modules/react-dom
npm ERR! peer react-dom@">=16.5.1" from react-native-web@0.11.7 npm
ERR! node_modules/react-native-web npm ERR! peer
react-native-web@"^0.11" from react-native-maps@0.28.0 npm ERR!
node_modules/react-native-maps npm ERR! react-native-maps@""
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
C:\Users\kcopu\AppData\Local\npm-cache\eresolve-report.txt for a full
report.
我也是这个问题。
如果我用这个命令安装
npm install react-native-maps --save-exact
不起作用...但使用此命令
expo install react-native-maps
有效!!
包管理器可以决定是否安装 react-native-maps。 NPM 不起作用,但您可以使用 yarn 安装包,例如 'yarn add react-native-maps' 可以代替 npm Install.
航站楼
npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: instalawnrn@0.0.1 npm ERR! Found: react@17.0.1 npm ERR! node_modules/react npm ERR!
react@"17.0.1" from the root project npm ERR! peer react@">= 16.0 || < 17.0" from react-native-maps@0.28.0 npm ERR!
node_modules/react-native-maps npm ERR! react-native-maps@"" from the root project npm ERR! 2 more (react-native, react-native-web) npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@"17.0.2" from react-dom@17.0.2 npm ERR! node_modules/react-dom npm ERR! peer react-dom@">=16.5.1" from react-native-web@0.11.7 npm ERR! node_modules/react-native-web npm ERR! peer react-native-web@"^0.11" from react-native-maps@0.28.0 npm ERR!
node_modules/react-native-maps npm ERR! react-native-maps@"" 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 C:\Users\kcopu\AppData\Local\npm-cache\eresolve-report.txt for a full report.
我也是这个问题。 如果我用这个命令安装
npm install react-native-maps --save-exact
不起作用...但使用此命令
expo install react-native-maps
有效!!
包管理器可以决定是否安装 react-native-maps。 NPM 不起作用,但您可以使用 yarn 安装包,例如 'yarn add react-native-maps' 可以代替 npm Install.