Package-Scry / app

0 stars 0 forks source link

Update peer dependency error #2

Open ghost opened 3 years ago

ghost commented 3 years ago

Updating a package can give you the following error:


Error: Command failed: cd **** && npm i @typescript-eslint/eslint-plugin@4.15.0
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! Found: @typescript-eslint/eslint-plugin@3.10.1
npm ERR! node_modules/@typescript-eslint/eslint-plugin
npm ERR!   dev @typescript-eslint/eslint-plugin@"4.15.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! dev @typescript-eslint/eslint-plugin@"4.15.0" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: @typescript-eslint/parser@4.15.0
npm ERR! node_modules/@typescript-eslint/parser
npm ERR!   peer @typescript-eslint/parser@"^4.0.0" from @typescript-eslint/eslint-plugin@4.15.0
npm ERR!   node_modules/@typescript-eslint/eslint-plugin
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.```
ghost commented 2 years ago

Similar error:


EPERM: operation not permitted, rename types/node (delete node_modules)

error: Command failed: cd "C:\Users\szkri\Desktop\Sora\Workspace\package-scry\app" && npm i eslint@8.21.0
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! Found: eslint@8.21.0
npm ERR! node_modules/eslint
npm ERR!   dev eslint@"8.21.0" from the root project
npm ERR!   peer eslint@">=7.0.0" from eslint-config-prettier@7.1.0
npm ERR!   node_modules/eslint-config-prettier
npm ERR!     dev eslint-config-prettier@"^7.1.0" from the root project
npm ERR!   2 more (eslint-plugin-prettier, eslint-plugin-svelte3)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer eslint@"^5.0.0 || ^6.0.0 || ^7.0.0" from @typescript-eslint/eslint-plugin@3.4.0
npm ERR! node_modules/@typescript-eslint/eslint-plugin
npm ERR!   dev @typescript-eslint/eslint-plugin@"^3.4.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\szkri\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\szkri\AppData\Local\npm-cache\_logs\2022-08-05T21_20_38_325Z-debug.log

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! Found: @typescript-eslint/eslint-plugin@3.10.1
npm ERR! node_modules/@typescript-eslint/eslint-plugin
npm ERR!   dev @typescript-eslint/eslint-plugin@"^5.32.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! dev @typescript-eslint/eslint-plugin@"^5.32.0" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: @typescript-eslint/parser@5.32.0
npm ERR! node_modules/@typescript-eslint/parser
npm ERR!   peer @typescript-eslint/parser@"^5.0.0" from @typescript-eslint/eslint-plugin@5.32.0
npm ERR!   node_modules/@typescript-eslint/eslint-plugin
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\szkri\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\szkri\AppData\Local\npm-cache\_logs\2022-08-05T21_30_42_648Z-debug.log```