I can’t install a component from Github in my React
rawix@rawix:~/cyberithub$ npm install @intelllex/react-pdf
(node:10719) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 close listeners added to [TLSSocket]. Use emitter.setMaxListeners() to increase limit
(Use node --trace-warnings ...
to show where the warning was created)
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: @testing-library/[email protected]
npm error Found: [email protected]
npm error node_modules/react
npm error peer react@”^16.14.0″ from [email protected]
npm error node_modules/react-dom
npm error react-dom@”^16.0.0″ from the root project
npm error peer react@”>= 16″ from [email protected]
npm error node_modules/react-scripts
npm error react-scripts@”5.0.1″ from the root project
npm error 2 more (the root project, @intelllex/react-pdf)
npm error
npm error Could not resolve dependency:
npm error peer react@”^18.0.0″ from @testing-library/[email protected]
npm error node_modules/@testing-library/react
npm error @testing-library/react@”^13.4.0″ from the root project
npm error
npm error Conflicting peer dependency: [email protected]
npm error node_modules/react
npm error peer react@”^18.0.0″ from @testing-library/[email protected]
npm error node_modules/@testing-library/react
npm error @testing-library/react@”^13.4.0″ from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with –force or –legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /home/rawix/.npm/_logs/2024-04-29T17_58_16_441Z-eresolve-report.txt
npm error A complete log of this run can be found in: /home/rawix/.npm/_logs/2024-04-29T17_58_16_441Z-debug-0.log
Ravil Yakuda is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.