react-client-captcha
react-client-captcha copied to clipboard
Dependency Conflict: Unable to Resolve Dependency Tree with React 18
I encountered a dependency resolution issue when trying to install react-client-captcha in my project using React 18. Here are the details:
Environment:
- Node version: 20.16.0
- NPM version: 10.8.1
- React version: 18.3.1
- react-client-captcha version: 1.0.3
Error npm install :
npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: [email protected] npm ERR! Found: [email protected] npm ERR! node_modules/react npm ERR! react@"^18" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@"^16.9.0" from [email protected] npm ERR! node_modules/react-client-captcha npm ERR! react-client-captcha@"^1.0.3" 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! npm ERR! For a full report see: npm ERR! /root/.npm/_logs/2024-08-06T07_30_30_525Z-eresolve-report.txt 