ERESOLVE could not resolve

When we try to refresh or install NPM packages there can be version conflicts between packages and the dependency requirements. The error message can vary, but it is similar to

npm error code ERESOLVE
npm error ERESOLVE could not resolve

To be able to install or refresh NPM packages

  • Delete the package-lock.json file
  • Delete the node_modules directory
  • Execute the npm install [MY_PACKAGE_NAME] commands one-by-one

These steps will most likely successfully reinstall the NPM packages, and if there is a conflict it will show in the response.

Leave a comment

Your email address will not be published. Required fields are marked *