Skip to content

npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR!

Posted in Education, and WhoCodeFirst

When I ran the below command, I got the above error message.
npm install @material-ui/core


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.

Just run below code. Works fine for me every time.

npm install –save react-tinder-card –legacy-peer-deps

Downgrade to npm v6. It should fix the issue.

npm install -g npm@6


If you enjoyed this article, Get email updates (It’s Free)
Translate »