OpenAPITools / OpenAPITools/openapi-generator-cli

npm warning `ERESOLVE overriding peer dependency`

Open
#373 9 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
2k
Forks
208
Avg merge
7h 12m
Merged PRs (30d)
6

Description

When I have a package.json file like this:

{
  "name": "example",
  "version": "1.0.0",
  "description": "example",
  "keywords": [],
  "license": "MIT",
  "main": "index.js",
  "scripts": {},
  "devDependencies": {
    "@openapitools/openapi-generator-cli": "2.3.3"
  }
}

And I run npm i, I get the following output:

npm WARN ERESOLVE overriding peer dependency
npm WARN Found: rxjs@7.1.0
npm WARN node_modules/rxjs
npm WARN   rxjs@"7.1.0" from @openapitools/openapi-generator-cli@2.3.3
npm WARN   node_modules/@openapitools/openapi-generator-cli
npm WARN     dev @openapitools/openapi-generator-cli@"2.3.3" from the root project
npm WARN 
npm WARN Could not resolve dependency:
npm WARN peer rxjs@"^6.0.0" from @nestjs/common@7.6.17
npm WARN node_modules/@nestjs/common
npm WARN   @nestjs/common@"7.6.17" from @openapitools/openapi-generator-cli@2.3.3
npm WARN   node_modules/@openapitools/openapi-generator-cli
npm WARN ERESOLVE overriding peer dependency
npm WARN Found: rxjs@7.1.0
npm WARN node_modules/rxjs
npm WARN   rxjs@"7.1.0" from @openapitools/openapi-generator-cli@2.3.3
npm WARN   node_modules/@openapitools/openapi-generator-cli
npm WARN     dev @openapitools/openapi-generator-cli@"2.3.3" from the root project
npm WARN 
npm WARN Could not resolve dependency:
npm WARN peer rxjs@"^6.0.0" from @nestjs/core@7.6.17
npm WARN node_modules/@nestjs/core
npm WARN   @nestjs/core@"7.6.17" from @openapitools/openapi-generator-cli@2.3.3
npm WARN   node_modules/@openapitools/openapi-generator-cli

added 132 packages, and audited 133 packages in 20s

25 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

This wasn't the case with earlier versions (I can at least confirm this isn't the case with 2.2.6, but I didn't try any other versions).

I'm using the following:
NodeJS v15.10.0
npm 7.5.3

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the supplied package.json and reproduce npm i using @openapitools/openapi-generator-cli 2.3.3, Node.js 15.10.0, and npm 7.5.3; compare the dependency tree with version 2.2.6. Trace the rxjs and NestJS peer-dependency declarations, and consider the issue resolved when installation no longer emits the reported ERESOLVE warnings without introducing vulnerabilities.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
cli, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.