Skip to content
Discussion options

You must be logged in to vote

ERESOLVE unable to resolve dependency tree usually means that npm found incompatible peer dependency requirements between packages.

A few things you can check:

Read the error output carefully—it usually identifies the package that requires a different version of another dependency.
Run:
npm ls

or

npm explain

to inspect why a particular dependency is being installed.

Check whether all related packages support the same major version. This commonly happens with packages such as React, Angular, ESLint, or TypeScript plugins after upgrading only some dependencies.
Update the conflicting packages so their peer dependency requirements are compatible.

Using:

npm install --legacy-peer-deps

can al…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by daniyal-debug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
npm
Labels
Bug GitHub or a GitHub feature is not working as intended npm Discussions around programming langages, open source and software development Welcome 🎉 Used to greet and highlight first-time discussion participants. Welcome to the community! source:ui Discussions created via Community GitHub templates
2 participants