question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

npm warning `ERESOLVE overriding peer dependency`

See original GitHub issue

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

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:2
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
im-moiescommented, May 11, 2022

same problem here help on mac too

1reaction
kevinoidcommented, Jun 30, 2021

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).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error overriding peer dependency - npm install reactstrap
versions of dependencies I have in package.json file. G:\Projects\React\confusion> npm install --save reactstrap. npm WARN ERESOLVE overriding ...
Read more >
NPM warning ERESOLVE overriding peer dependency #6349
Prerequisites I am using the correct version of React-Bootstrap for my version of Bootstrap I have searched for duplicate or closed issues I ......
Read more >
npm WARN ERESOLVE overriding peer dependency
The error "npm WARN ERESOLVE overriding peer dependency" occurs because since npm v7.0, npm tries to automatically install peer dependencies.
Read more >
How to solve peer dependencies error after updating ... - Reddit
Can anyone help me figure it out? Currently I get this error: npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency...
Read more >
how can i fix npm install issues? - node.js - Super User
Use `--location=global` instead. npm WARN ERESOLVE overriding peer dependency npm WARN While resolving: @use-it/event-listener@0.1.6 npm ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found