Naxulanth / react-native-daterange-picker

A React Native component for picking date ranges or single dates.
MIT License
130 stars 85 forks source link

unable to npm install react version need to updated from react@"^16.13.1" to onward #36

Open sufyansalim opened 2 years ago

sufyansalim commented 2 years ago

`$ npm i react-native-daterange-picker npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: aido@0.0.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! npm ERR! Could not resolve dependency: npm ERR! peer react@"^16.13.1" from react-native-daterange-picker@1.5.1 npm ERR! node_modules/react-native-daterange-picker npm ERR! react-native-daterange-picker@"*" 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\USER\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\USER\AppData\Local\npm-cache_logs\2022-05-04T14_10_54_989Z-debug.log`

3beeepb commented 2 years ago

npm install --save react-native-daterange-picker --legacy-peer-deps