openapi-generator-cli icon indicating copy to clipboard operation
openapi-generator-cli copied to clipboard

npm warning `ERESOLVE overriding peer dependency`

Open martinfrancois opened this issue 3 years ago • 9 comments

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: [email protected]
npm WARN node_modules/rxjs
npm WARN   rxjs@"7.1.0" from @openapitools/[email protected]
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/[email protected]
npm WARN node_modules/@nestjs/common
npm WARN   @nestjs/common@"7.6.17" from @openapitools/[email protected]
npm WARN   node_modules/@openapitools/openapi-generator-cli
npm WARN ERESOLVE overriding peer dependency
npm WARN Found: [email protected]
npm WARN node_modules/rxjs
npm WARN   rxjs@"7.1.0" from @openapitools/[email protected]
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/[email protected]
npm WARN node_modules/@nestjs/core
npm WARN   @nestjs/core@"7.6.17" from @openapitools/[email protected]
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

martinfrancois avatar Jun 04 '21 10:06 martinfrancois

Does the issue still exist? I'm unable to reproduce it.

kay-schecker avatar Jun 30 '21 20:06 kay-schecker

Does the issue still exist? I'm unable to reproduce it.

I'm able to reproduce it with npm 7.19.0, in a clean environment with no ~/.npmrc, by running npm init -y && npm install @openapitools/openapi-generator-cli. The output is the same as @martinfrancois posted, except with version 2.3.5 instead of 2.3.3.

@kay-schecker, let me know if you're still unable to reproduce it and I'll try to repro in a GitHub Action (or however you'd prefer).

kevinoid avatar Jun 30 '21 20:06 kevinoid

I have same problem

`npm WARN ERESOLVE overriding peer dependency npm WARN While resolving: [email protected] npm WARN Found: [email protected] npm WARN node_modules/nativescript/node_modules/marked npm WARN marked@"1.1.1" from [email protected] npm WARN node_modules/nativescript npm WARN nativescript@"*" from the root project npm WARN npm WARN Could not resolve dependency: npm WARN peer marked@"^0.4.0 || ^0.5.0" from [email protected] npm WARN node_modules/nativescript/node_modules/marked-terminal npm WARN marked-terminal@"https://github.com/NativeScript/marked-terminal/tarball/v3.1.1n" from [email protected] npm WARN node_modules/nativescript npm WARN npm WARN Conflicting peer dependency: [email protected] npm WARN node_modules/marked npm WARN peer marked@"^0.4.0 || ^0.5.0" from [email protected] npm WARN node_modules/nativescript/node_modules/marked-terminal npm WARN marked-terminal@"https://github.com/NativeScript/marked-terminal/tarball/v3.1.1n" from [email protected] npm WARN node_modules/nativescript npm WARN deprecated [email protected]: this library is no longer supported npm WARN deprecated [email protected]: Deprecated due to CVE-2021-21366 resolved in 0.5.0 npm WARN deprecated [email protected]: Deprecated due to CVE-2021-21366 resolved in 0.5.0 npm WARN deprecated [email protected]: Deprecated due to CVE-2021-21366 resolved in 0.5.0 npm WARN deprecated [email protected]: Please upgrade to latest, formidable@v2 or formidable@v3! Check these notes: https://bit.ly/2ZEqIau npm WARN deprecated [email protected]: If using 2.x branch, please upgrade to at least 2.1.6 to avoid a serious bug with socket data flow and an import issue introduced in 2.1.0 npm WARN deprecated [email protected]: If using 2.x branch, please upgrade to at least 2.1.6 to avoid a serious bug with socket data flow and an import issue introduced in 2.1.0 npm WARN deprecated [email protected]: Deprecated due to CVE-2021-21366 resolved in 0.5.0 npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated [email protected]: Critical security vulnerability fixed in v0.21.1. For more information, see https://github.com/axios/axios/pull/3410

changed 623 packages, and audited 624 packages in 15s

30 packages are looking for funding run npm fund for details

29 vulnerabilities (16 moderate, 8 high, 5 critical)

To address issues that do not require attention, run: npm audit fix

To address all issues possible (including breaking changes), run: npm audit fix --force

Some issues need review, and may require choosing a different dependency. `

viashna avatar Nov 26 '21 04:11 viashna

npm version 8.1.0 node version v16.13.0 I am using Mac

viashna avatar Nov 26 '21 04:11 viashna

same problem here help on mac too

im-moies avatar May 11 '22 13:05 im-moies

i have the same problem.

CurlyBreezes avatar Jun 04 '22 19:06 CurlyBreezes

I have the same issue too

Mirfan5164 avatar Jun 05 '22 23:06 Mirfan5164

I have this problem too Can anyone help, please?

sor-panharith avatar Jun 09 '22 14:06 sor-panharith

these are just working in npm version 7.X so it still works. but in npm version 8.X and node v16.X npm install doesn't even work. it straight away gives peer dependencies issue

KunalBurangi avatar Jun 30 '22 07:06 KunalBurangi