Javascript 在终端中使用“npm安装反应本机模式日期时间选择器”时出错

Javascript 在终端中使用“npm安装反应本机模式日期时间选择器”时出错,javascript,node.js,react-native,npm,Javascript,Node.js,React Native,Npm,我正在开发一个应用程序,每当我尝试安装react native modal datetime picker包时,它总是抛出一个错误,这对于任何日期时间picker包(如@react native community/datetime picker)都是一样的 这就是我得到的错误: npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving

我正在开发一个应用程序,每当我尝试安装
react native modal datetime picker
包时,它总是抛出一个错误,这对于任何日期时间picker包(如
@react native community/datetime picker)都是一样的

这就是我得到的错误:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: undefined@undefined
npm ERR! Found: react@16.13.1
npm ERR! node_modules/react
npm ERR!   react@"16.13.1" from the root project
npm ERR!   peer react@">=16.8.3" from @react-native-community/datetimepicker@3.0.4
npm ERR!   node_modules/@react-native-community/datetimepicker
npm ERR!     @react-native-community/datetimepicker@"3.0.4" from the root project
npm ERR!   1 more (react-native)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"17.0.1" from react-native-windows@0.64.2
npm ERR! node_modules/react-native-windows
npm ERR!   peer react-native-windows@">=0.62" from @react-native-community/datetimepicker@3.0.4
npm ERR!   node_modules/@react-native-community/datetimepicker
npm ERR!     @react-native-community/datetimepicker@"3.0.4" 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/accountName/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/accountName/.npm/_logs/2jajaijajaijajajajjajajajjjaijajajjajjjjjjjjjjjjjjajjjajaijjjjjjj

如果你对我如何解决这个问题有任何想法,请让我知道…提前谢谢

此问题尚未完全解决,但如果您面临此问题,请尝试安装带有纱线的软件包