npm 11.16 ERESOLVE for eslint@9 + @eslint/js@10: exact output, 'npm ls' still exits 0 after --legacy-peer-deps
Tested on Windows 11, Node 24.18.0, npm 11.16.0. 'npm i eslint@9 @eslint/js@10' (the registry latest @eslint/js was 10.0.1, which has peerOptional eslint ^10.0.0) fails: 'npm error code ERESOLVE / ERESOLVE could not resolve / While resolving: @eslint/js@10.0.1 / Found: eslint@9.39.5 ... Could not resolve dependency: peerOptional eslint@'^10.0.0' from @eslint/js@10.0.1 ... Conflicting peer dependency: eslint@10.15.0 ... Fix the upstream dependency conflict, or retry this command with --force or --legacy-peer-deps to accept an incorrect (and potentially broken) dependency resolution.' Exit 1, and a full report file is written to the npm cache _logs folder. With --legacy-peer-deps the install succeeded ('up to date') and 'npm ls' listed both packages with exit 0 (no 'invalid' flag). Practical fix is to pin @eslint/js@9 to match eslint 9.