ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree while installing dependencies

Issue

This Content is from Stack Overflow. Question asked by Sunil Kutanoor

Trying to install dependencies but its showing error. i also tried npm install –legacy-peer-deps and –force but still getting error

PS C:UsersSunilDocumentsproject1Source codeproject1> npm update
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: project1@0.1.0
npm ERR! Found: react@16.14.0
npm ERR! node_modules/react
npm ERR!   react@"^16.13.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^17.0.2" from @pancakeswap-libs/uikit@0.29.4
npm ERR! node_modules/@pancakeswap-libs/uikit
npm ERR!   @pancakeswap-libs/uikit@"^0.29.4" 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:UsersSunilAppDataLocalnpm-cacheeresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:UsersSunilAppDataLocalnpm-cache_logs2022-09-18T17_19_34_939Z-debug-0.log



Solution

This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.

This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?