How to Fix npm ERR ERESOLVE Unable to Resolve Dependency Tree React Error in Visual Studio Code

preview_player
Показать описание
ERESOLVE unable to resolve dependency tree error when installing npm packages
The error “ERESOLVE unable to resolve dependency tree” occurs when installing npm packages has unmet peer dependencies. The conflict or incompatible versions of packages in the project will lead to this error.

This happens when you are trying to clone a project which is built a long time ago, and project dependencies have moved on to newer versions.

To solve this error, try the below steps.
-open terminal and type the following
npm install --save --legacy-peer-deps

This would do solve ERESOLVE unable to resolve dependency tree error when installing npm packages
Рекомендации по теме
Комментарии
Автор

works on me! its so frustrating :). I have question in the future if I deployed the project there will no issue using this method??

quilloai