react-client-captcha icon indicating copy to clipboard operation
react-client-captcha copied to clipboard

Dependency Conflict: Unable to Resolve Dependency Tree with React 18

Open Behnam-Bashiri opened this issue 6 months ago • 0 comments

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 ![Screenshot 1403-05-16 at 11 08 01](https://github.com/user-attachments/assets/d4b3cbb2-57bb-4294-bbd1-8cda8e791e57)

Behnam-Bashiri avatar Aug 06 '24 07:08 Behnam-Bashiri