运行命令以在 React Native 项目中安装声音依赖项时出错

时间:2021-03-22 10:48:39

标签: react-native-sound

每次我运行这个命令时:

npm install react-native-sound --save

它给了我以下错误:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: Sample@0.0.1
npm ERR! Found: react@16.13.1
npm ERR! node_modules/react
npm ERR!   react@"16.13.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"16.9.0" from react-native@0.61.1
npm ERR! node_modules/react-native
npm ERR!   react-native@"0.61.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.
npm ERR!
npm ERR! See C:\Users\DeLL\AppData\Local\npm-cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\DeLL\AppData\Local\npm-cache\_logs\2021-03-22T10_43_53_250Z-debug.log

0 个答案:

没有答案