xcarpentier / react-native-country-picker-modal

🇦🇶 Country picker provides a modal allowing a user to select a country from a list. It display a flag next to each country name.
https://reactnative.gallery/xcarpentier/country-picker
MIT License
1.08k stars 802 forks source link

Unable to install #410

Closed asalha closed 3 years ago

asalha commented 3 years ago

Issue Description

npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! Found: react-native-web@0.13.18 npm ERR! node_modules/react-native-web npm ERR! react-native-web@"~0.13.12" from the root project npm ERR! peer react-native-web@"" from react-native-country-picker-modal@2.0.0 npm ERR! node_modules/react-native-country-picker-modal npm ERR! react-native-country-picker-modal@"" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react-native-web@"0.9.x" from modal-react-native-web@0.2.0 npm ERR! node_modules/react-native-country-picker-modal/node_modules/modal-react-native-web npm ERR! modal-react-native-web@"0.2.0" from react-native-country-picker-modal@2.0.0 npm ERR! node_modules/react-native-country-picker-modal npm ERR! react-native-country-picker-modal@"*" 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.

Steps to Reproduce / Code Snippets

npm i react-native-country-picker-modal

Additional Information

ricohumme commented 3 years ago

Use npm i react-native-country-picker-modal --legacy-peer-deps and it should work. Worked for me.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.