react-native-numeric-input
react-native-numeric-input copied to clipboard
[BUG] - I'm having an issue with...
Describe the bug I am trying to install this wonderful library on an iOS machine (10.15.5.) I got the error messages below.
When installing on MS Windows 10, the installation finishes successfully. It gives a warning about the presence of a new version of react-native-vector-icons
than required. However, it works fine.
Error:
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: <MyProjectName>
npm ERR! Found: [email protected]
npm ERR! node_modules/react-native-vector-icons
npm ERR! react-native-vector-icons@"^8.1.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react-native-vector-icons@"^4.*" from [email protected]
npm ERR! node_modules/react-native-numeric-input
npm ERR! react-native-numeric-input@"*" 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/<MyUserName>/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/<MyUserName>/.npm/_logs/2021-07-09T08_43_40_376Z-debug.log
To Reproduce
npm install --save react-native-vector-icons
npm install --save react-native-numeric-input
Enviorment:
- Version: the latest vesrion, which is available through the install command above - I suppose it is 1.8.3
- React Native version: 0.64.2
- Device: iOS simulator 14.4
- Development Platform: iOS 10.15.5
Additional Information
As the error message says, react-native-vector-icons
version 8.1.0
is installed. I tried to install an earlier version 4.6.0
. I got error messages regarding the dependency for other libraries, i.e. react-native-elements.
This maybe a temporary solution but go ahead and try installing the lib with the --legacy-peer-deps option. This means there's no need to downgrade the vector icon lib. This solved the same issue for me