Npm install error

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: build-apis-boss-machine@1.0.0
npm ERR! Found: redux@3.7.2
npm ERR! node_modules/redux
npm ERR! dev redux@"^3.7.2" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer redux@"^4" from redux-thunk@2.4.1
npm ERR! dev redux-thunk@"^2.2.0" 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!
npm ERR! See C:\Users\munavir\AppData\Local\npm-cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\munavir\AppData\Local\npm-cache_logs\2022-02-11T00_23_16_818Z-debug.log
PS E:\node project\project-4-boss-machine-start\project-4-boss-machine-start> npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: build-apis-boss-machine@1.0.0
npm ERR! Found: redux@3.7.2
npm ERR! node_modules/redux
npm ERR! dev redux@"^3.7.2" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer redux@"^4" from redux-thunk@2.4.1
npm ERR! node_modules/redux-thunk
npm ERR! dev redux-thunk@"^2.2.0" 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.

Can we have a link to the lesson this problem is occurring in? And don’t forget to format code and errors correctly: [How to] Format code in posts

As a rule, you can attempt to use the --force or --legacy-peer-deps options on the install command.
That being said, what are you trying to install?

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.