NPM “ERESOLVE” enable to resolve dependencies

A common error when we update NPM version’s or when we download a project that has been compiled with a previous version, is that when we try to install the dependencies we get “unable to resolve dependency tree”.

This is probably a dependency conflict (incorrect and potentially broken dependency) , so to resolve it, a fast track can be simply try running the command with –force, or –legacy-peer-deps

npm install --legacy-peer-deps

Before executing previous command, we could try to delete node_modules and package-lock.json and then run “npm install” Or Cleaning the npm cache. “npm cache clean --force” and running “npm install --force