Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm ERESOLVE Error When Installing @nestjs/axios with axios #11

Closed
num13ru opened this issue Nov 29, 2023 · 1 comment
Closed

npm ERESOLVE Error When Installing @nestjs/axios with axios #11

num13ru opened this issue Nov 29, 2023 · 1 comment

Comments

@num13ru
Copy link

num13ru commented Nov 29, 2023

I encountered an error when trying to install @nestjs/axios alongside axios in my Node.js project using npm. The error suggests a conflict in dependency versions.

Steps to Reproduce

  1. Have @ton/ton version 13.9.0 installed in the project with Nest.js version 10.0.0
  2. Run npm i --save @nestjs/axios axios (from nest docs)

Expected Behavior

I expected both axios and @nestjs/axios to install without any version conflicts.

Actual Behavior

The installation fails due to a version conflict between axios required by my project and the version required by @nestjs/axios.

Error Output:

npm i --save @nestjs/axios axios
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/axios
npm ERR!   axios@"^0.25.0" from @ton/[email protected]
npm ERR!   node_modules/@ton/ton
npm ERR!     @ton/ton@"^13.9.0" from the root project
npm ERR!   axios@"*" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! @nestjs/axios@"*" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/axios
npm ERR!   peer axios@"^1.3.1" from @nestjs/[email protected]
npm ERR!   node_modules/@nestjs/axios
npm ERR!     @nestjs/axios@"*" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!

Environment

Node.js version: 16.20.2
npm version: 8.19.4
Nest.js version: 10.0.0
Operating System: MacOS

@dvlkv
Copy link
Collaborator

dvlkv commented Feb 26, 2024

Should be fixed in the latest release.

@dvlkv dvlkv closed this as completed Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants