I'm getting the following dependency issues centering around eslint when I try to build my Vue 2 app.
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: vue-crm#2.2.3
npm ERR! Found: eslint#8.16.0
npm ERR! node_modules/eslint
npm ERR! dev eslint#">=7.5.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer eslint#"^5.0.0 || ^6.0.0" from #typescript-eslint/parser#2.34.0
npm ERR! node_modules/#typescript-eslint/parser
npm ERR! dev #typescript-eslint/parser#"^2.26.0" from the root project
npm ERR! peer #typescript-eslint/parser#"^2.0.0" from #typescript-eslint/eslint-plugin#2.34.0
npm ERR! node_modules/#typescript-eslint/eslint-plugin
npm ERR! dev #typescript-eslint/eslint-plugin#"^2.26.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!
I have tried changing the eslint version in the package.json to several different versions but nothing resolves the issue.
I have also tried running npm install --save --legacy-peer-deps as suggested for this similar SO question and, though the build begins, it hangs shortly after at about half way through like so:
########⠂⠂⠂⠂⠂⠂⠂⠂⠂⸩ ⠋ idealTree: timing idealTree Completed in 29424ms
I am particularly confused by the line npm ERR! Found: eslint#8.16.0. I don't know where this is being found and the version number that it complains about might change each time I try another one in the package.json.
I've been trying to fix this for a couple of days now without any luck. If anyone can tell me what is needed to resolve it I would be very grateful.
Related
I'm new to angular and I'm currently making some tutorials and I ran onto some dependency tree issue when I try to install dayjs library. I looked for an answer and I assume that the library should be updated.
I run the following command :
npm install --save angular-dayjs dayjs
and the result I got is
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: test-app#0.0.0
npm ERR! Found: #angular/common#13.1.3
npm ERR! node_modules/#angular/common
npm ERR! #angular/common#"~13.1.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer #angular/common#"^11.2.7" from angular-dayjs#0.0.4
npm ERR! node_modules/angular-dayjs
npm ERR! angular-dayjs#"*" 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.
I assume that the author of the library should rebuild the it against latest angular/common but
is there any chance to solve this issue on my own?
Thank you in advance!
i am new to npm, and have trouble running npm install on this repo: https://github.com/ttencate/jfxr
after the initial install failed with error code 1, i found resources pointing towards updating the package versions.
after running
npx npm-check-updates -u
npm install still fails, this time with a reasonable error stack:
p#MBP-von-up app % npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: jfxr-app#0.14.0
npm ERR! Found: eslint#8.19.0
npm ERR! node_modules/eslint
npm ERR! dev eslint#"^8.19.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer eslint#">=1.6.0 <7.0.0" from eslint-loader#2.2.1
npm ERR! node_modules/eslint-loader
npm ERR! dev eslint-loader#"^2.1.1" 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 /Users/tp/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/tp/.npm/_logs/2022-07-05T13_34_08_046Z-debug-0.log
but i am still unclear on how to resolve this version mismatch.
also, running with the old version would be fine for me too, if it worked at all...
any help / tips towards resources appreciated!
After running npx npm-check-updates -u I tried running npm install, and got the following message:
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! Found: #nestjs/typeorm#8.0.3
npm ERR! node_modules/#nestjs/typeorm
npm ERR! #nestjs/typeorm#"^8.1.4" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! #nestjs/typeorm#"^8.1.4" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: typeorm#0.3.6
npm ERR! node_modules/typeorm
npm ERR! peer typeorm#"^0.3.0" from #nestjs/typeorm#8.1.4
npm ERR! node_modules/#nestjs/typeorm
npm ERR! #nestjs/typeorm#"^8.1.4" 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.
I've searched and seen people recommend just using --legacy-peer-deps or --force, but is it supposed to be solved that way? Or am I supposed to manually fix the issue?
I tried searching for guides on how to resolve dependency tree errors but couldn't find any. Could you give me some guidance on where should I start with resolving the errors.
Here is the discussion about the issue with incompatible versions between nestjs/typeorm and typeorm. if you want to keep use the old version, try to use the fix version with:
"#nestjs/typeorm": "8.0.4",
"typeorm": "0.2.40",
Reinstall the packages, and it should fix the issue.
i fixed it by do following steps:
restart computer
delete and clone project again
npm i again and anything is good
I've tried with both --force and --legacy-peer-deps, but nothing seems to work. I'm currently using node#10.2.0 in macOS.
hiteshagarwal#Hiteshs-MBP kuber % npm i
(node:48924) ExperimentalWarning: The fs.promises API is experimental
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: client#0.1.0
npm ERR! Found: redux#4.1.0
npm ERR! node_modules/redux
npm ERR! redux#"^4.0.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer redux#"^2.0.0 || ^1.0.0" from redux-log-slow-reducers#0.0.2
npm ERR! node_modules/redux-log-slow-reducers
npm ERR! redux-log-slow-reducers#"0.0.2" 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 /Users/hiteshagarwal/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/hiteshagarwal/.npm/_logs/2021-05-09T13_52_12_776Z-debug.log
After resolving the conflict issue with --legacy-peer-deps there was other many errors which were reflecting about node-gyp, gcc, const denominator, etc.
It’s resolved now. There was a conflict between the npm and node versions. I was using node 10.2.0 with npm 5.2.0 and some node-gyp cache files were also there from node 16.* version which was the reasons. I have cleaned the system with all the nvm, npm and node files and other caches and then reinstalled the node#10.2.0 from the web and it contains npm 5.6.* with which I was able to solve my issue.
I'm trying to install the Next.js/Preact.js setup from vercel and I get the following error:
> npx create-next-app --example using-preact using-preact-app
Need to install the following packages:
create-next-app
Ok to proceed? (y) y
Creating a new Next.js app in /home/somayyah/Documents/using-preact-app.
Downloading files for example using-preact. This might take a moment.
Installing packages. This might take a couple of minutes.
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: using-preact#1.0.0
npm ERR! Found: react#0.0.3
npm ERR! node_modules/react
npm ERR! react#"npm:#preact/compat#^0.0.3" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react#"^16.6.0 || ^17" from next#10.0.6
npm ERR! node_modules/next
npm ERR! next#"^10.0.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 /home/somayyah/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/somayyah/.npm/_logs/2021-02-13T17_16_32_165Z-debug.log
I tried setting up Preact by myself on another project and I had the same issue, how can I get around this?
I think this is a bug related to npx. i am using yarn create next-app --example using-preact using-preact-app and it is installed successfully but unfortunately it looks like the example is not working and throws the error Could not find module' webpack