You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Have @ton/ton version 13.9.0 installed in the project with Nest.js version 10.0.0
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!
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
@ton/ton
version 13.9.0 installed in the project with Nest.js version 10.0.0npm 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:
Environment
Node.js version: 16.20.2
npm version: 8.19.4
Nest.js version: 10.0.0
Operating System: MacOS
The text was updated successfully, but these errors were encountered: