Is there an existing issue for this?
possibly related
This issue exists in the latest npm version
Current Behavior
The issue might be a repeat of something similar. But anyways, Starting from a clean install state e.g. 'eslint@9.39.2', '@eslint/js@9.39.2', 'typescript-eslint@8.50.0'
dependency upgrade chore (e.g. with renovate) wants to update the package versions to
eslint@10.2.0 @eslint/js@10.0.1 typescript-eslint@8.58.0
how ever this fails as npm cannot resolve the peerdependencies between those packages
Expected Behavior
Deleting the lockfile. or starting with the new state with the newer versions works fine. so ideally npm should find the transition path between the old and the new dependency trees automatically.
Workarounds
- when updating the stricter requirements package
typescript-eslint@8.50.0 (which has peers eslint@"^8.57.0 || ^9.0.0") first:
$ npm install -D --save-exact typescript-eslint@8.58.0
# and then
$ npm install -D --save-exact eslint@10.2.0 @eslint/js@10.0.1 typescript-eslint@8.58.0
- likewise, updating
esling alone first also works (with some peer deps warnings):
$ npm install -D --save-exact eslint@10.2.0
# and then
$ npm install -D --save-exact eslint@10.2.0 @eslint/js@10.0.1 typescript-eslint@8.58.0
Steps To Reproduce
- empty workspace
mkdir temp && cd temp
- init npm
npm init -y
- The initial Start state:
npm install -D --save-exact eslint@9.39.2 @eslint/js@9.39.2 typescript-eslint@8.50.0
- package updater tries to update the packages.
npm install -D --save-exact eslint@10.2.0 @eslint/js@10.0.1 typescript-eslint@8.58.0
- See error:
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: eslint-test-project@1.0.0
npm error Found: @eslint/js@9.39.2
npm error node_modules/@eslint/js
npm error @eslint/js@"9.39.2" from eslint@9.39.2
npm error node_modules/eslint
npm error peer eslint@"^6.0.0 || ^7.0.0 || >=8.0.0" from @eslint-community/eslint-utils@4.9.1
npm error node_modules/@eslint-community/eslint-utils
npm error @eslint-community/eslint-utils@"^4.7.0" from @typescript-eslint/utils@8.50.0
npm error node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils
npm error @typescript-eslint/utils@"8.50.0" from @typescript-eslint/eslint-plugin@8.50.0
npm error node_modules/@typescript-eslint/eslint-plugin
npm error 3 more (@typescript-eslint/utils, eslint, @typescript-eslint/utils)
npm error peer eslint@"^8.57.0 || ^9.0.0" from @typescript-eslint/eslint-plugin@8.50.0
npm error node_modules/@typescript-eslint/eslint-plugin
npm error @typescript-eslint/eslint-plugin@"8.50.0" from typescript-eslint@8.50.0
npm error node_modules/typescript-eslint
npm error dev typescript-eslint@"8.58.0" from the root project
npm error 7 more (@typescript-eslint/utils, @typescript-eslint/parser, ...)
npm error dev @eslint/js@"10.0.1" from the root project
npm error
npm error Could not resolve dependency:
npm error dev @eslint/js@"10.0.1" from the root project
npm error
npm error Conflicting peer dependency: eslint@10.2.0
npm error node_modules/eslint
npm error peerOptional eslint@"^10.0.0" from @eslint/js@10.0.1
npm error node_modules/@eslint/js
npm error dev @eslint/js@"10.0.1" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry this command with --force or --legacy-peer-deps to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error \npm-cache\_logs\2026-05-07T10_05_05_410Z-eresolve-report.txt
npm error A complete log of this run can be found in: \npm-cache\_logs\2026-05-07T10_05_05_410Z-debug-0.log
Environment
- npm: 11.14.0
- Node.js: v24.15.0
- OS Name:
- System Model Name:
- npm config:
; copy and paste output from `npm config ls` here
Is there an existing issue for this?
possibly related
This issue exists in the latest npm version
Current Behavior
The issue might be a repeat of something similar. But anyways, Starting from a clean install state e.g.
'eslint@9.39.2', '@eslint/js@9.39.2', 'typescript-eslint@8.50.0'dependency upgrade chore (e.g. with renovate) wants to update the package versions to
eslint@10.2.0 @eslint/js@10.0.1 typescript-eslint@8.58.0how ever this fails as npm cannot resolve the peerdependencies between those packages
Expected Behavior
Deleting the lockfile. or starting with the new state with the newer versions works fine. so ideally npm should find the transition path between the old and the new dependency trees automatically.
Workarounds
typescript-eslint@8.50.0(which has peerseslint@"^8.57.0 || ^9.0.0") first:eslingalone first also works (with some peer deps warnings):Steps To Reproduce
mkdir temp && cd tempnpm init -ynpm install -D --save-exact eslint@9.39.2 @eslint/js@9.39.2 typescript-eslint@8.50.0npm install -D --save-exact eslint@10.2.0 @eslint/js@10.0.1 typescript-eslint@8.58.0Environment
; copy and paste output from `npm config ls` here