Skip to content

[BUG] ERESOLVE peer dep conflict reported when no conflict exists #3138

@ljharb

Description

@ljharb

Current Behavior:

in eslint-plugin-react's repo, on master, i ran npx npm@7 install --save-dev @types/eslint @types/node eslint-plugin-eslint-plugin@3 semver sinon typescript typescript-eslint-parser.

I got https://gist.github.com/ljharb/dc643e6f094d5dfc912633a5e55637ab as output. Note:

npm ERR! Conflicting peer dependency: eslint@7.24.0
npm ERR! node_modules/eslint
npm ERR!   peer eslint@"^7.0.0" from eslint-plugin-eslint-plugin@3.0.2

Expected Behavior:

It should have installed and saved these dev deps. ^7.0.0 is compatible with v7.24.0.

Steps To Reproduce:

Clone the repo, run npm install, then run the above command.

Environment:

  • OS: Mac
  • Node: 15.14.0
  • npm: 7.11.0 and v7.10.0

(this does _ not_ appear to be the same issue as #3113 or #2823)

Metadata

Metadata

Assignees

Labels

Bugthing that needs fixingRelease 7.xwork is associated with a specific npm 7 release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions