Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eslint@8 dependency is breaking npm install #631

Closed
broofa opened this issue May 13, 2022 · 2 comments
Closed

eslint@8 dependency is breaking npm install #631

broofa opened this issue May 13, 2022 · 2 comments

Comments

@broofa
Copy link
Member

broofa commented May 13, 2022

When trying to npm install the dev environment

$ \rm -fr node_modules

$ git branch
...
* main
...

$ git pull
Already up to date.

$ npm -v
8.7.0

$ node -v
v16.14.2

$ npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: eslint-config-standard@16.0.3
npm ERR! Found: eslint@8.3.0
npm ERR! node_modules/eslint
npm ERR!   dev eslint@"8.3.0" from the root project
npm ERR!   peer eslint@"^7.5.0 || ^8.0.0" from @babel/eslint-parser@7.16.3
npm ERR!   node_modules/@babel/eslint-parser
npm ERR!     dev @babel/eslint-parser@"7.16.3" from the root project
npm ERR!   6 more (eslint-config-prettier, eslint-plugin-es, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer eslint@"^7.12.1" from eslint-config-standard@16.0.3
npm ERR! node_modules/eslint-config-standard
npm ERR!   dev eslint-config-standard@"16.0.3" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: eslint@7.32.0
npm ERR! node_modules/eslint
npm ERR!   peer eslint@"^7.12.1" from eslint-config-standard@16.0.3
npm ERR!   node_modules/eslint-config-standard
npm ERR!     dev eslint-config-standard@"16.0.3" 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/kieffer/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/kieffer/.npm/_logs/2022-05-13T19_30_30_624Z-debug-0.log
@broofa
Copy link
Member Author

broofa commented May 13, 2022

Running npm install eslint@7 fixes things (fwiw). I'm guessing this is due to newer npm versions being better about complaining when there's conflicting peer dependencies?

@ctavan
Copy link
Member

ctavan commented Jul 29, 2022

Did this in #643

@ctavan ctavan closed this as completed Jul 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants