elementz icon indicating copy to clipboard operation
elementz copied to clipboard

Error when trying to install with React 17.0.2

Open TheBotlyNoob opened this issue 3 years ago • 2 comments

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@"^17.0.2" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.0.0" from [email protected]
npm ERR! node_modules/elementz
npm ERR!   dev elementz@"*" 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 C:\Users\me\AppData\Local\npm-cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\me\AppData\Local\npm-cache\_logs\2021-07-10T18_12_28_223Z-debug.log

Originally I installed using --force, but, decided to post this here anyway.

TheBotlyNoob avatar Jul 10 '21 18:07 TheBotlyNoob

I get the same problem with 18.1.0

THE OUTPUT: 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.1.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@"^17.0.2" from [email protected] npm ERR! node_modules/elementz npm ERR! elementz@"*" 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 C:\Users\User\AppData\Local\npm-cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\User\AppData\Local\npm-cache_logs\2022-05-15T14_14_41_300Z-debug-0.log

Abdo-Shaibany avatar May 15 '22 14:05 Abdo-Shaibany

I meet this problem too. But I solve it by using yarn add elementz. :)

klsc749 avatar Jul 04 '22 01:07 klsc749