You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
Logs
$ npm install eslint@4 eslint-plugin-mocha@10 -D
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: eslint-plugin-mocha-test@1.0.0
npm ERR! Found: eslint@4.19.1
npm ERR! node_modules/eslint
npm ERR! dev eslint@"4" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer eslint@">=7.0.0" from eslint-plugin-mocha@10.4.3
npm ERR! node_modules/eslint-plugin-mocha
npm ERR! dev eslint-plugin-mocha@"10" 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.
Suggestion
PR ESLint 7 #247 in May 2020 updated peerDependencies from eslint >=4.0.0 to eslint >=7.0.0
so it would make sense to update the README accordingly.
Good catch, thank you. Since the breaking change was announced via the release notes, I think we are good and just need to update the README, as you suggested.
Good catch, thank you. Since the breaking change was announced via the release notes, I think we are good and just need to update the README, as you suggested.
Yes, I see this under the release notes for 7.0.0. Thanks for pointing that out.
Issue
The README > Install and configure for
eslint-plugin-mocha@10.4.3
says:however attempting to install with ESLint
4.0.0
fails with:Steps to reproduce
On Ubuntu
22.04.4
LTS with Node.js20.12.2
LTSmkdir eslint-plugin-mocha-test cd eslint-plugin-mocha-test git init npm init -y npm install eslint@4.0.0 eslint-plugin-mocha@10 -D
Note the error
Logs
Suggestion
peerDependencies
fromeslint >=4.0.0
toeslint >=7.0.0
so it would make sense to update the README accordingly.
Suggest to update the README > Install and configure section to say:
The text was updated successfully, but these errors were encountered: