Could not resolve dependency when installing latest eslint-plugin-putout
EvgenyOrekhov opened this issue · 4 comments
EvgenyOrekhov commented
Getting this:
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: @babel/eslint-parser@8.0.0-alpha.2
npm WARN Found: @babel/core@8.0.0-alpha.2
npm WARN node_modules/eslint-plugin-putout/node_modules/@babel/core
npm WARN @babel/core@"^8.0.0-alpha.1" from eslint-plugin-putout@19.1.0
npm WARN node_modules/eslint-plugin-putout
npm WARN eslint-plugin-putout@"^19.1.0" from the root project
npm WARN 1 more (@babel/helper-module-transforms)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer @babel/core@">=7.11.0" from @babel/eslint-parser@8.0.0-alpha.2
npm WARN node_modules/eslint-plugin-putout/node_modules/@babel/eslint-parser
npm WARN @babel/eslint-parser@"^8.0.0-alpha.1" from eslint-plugin-putout@19.1.0
npm WARN node_modules/eslint-plugin-putout
npm WARN
npm WARN Conflicting peer dependency: @babel/core@7.22.10
npm WARN node_modules/@babel/core
npm WARN peer @babel/core@">=7.11.0" from @babel/eslint-parser@8.0.0-alpha.2
npm WARN node_modules/eslint-plugin-putout/node_modules/@babel/eslint-parser
npm WARN @babel/eslint-parser@"^8.0.0-alpha.1" from eslint-plugin-putout@19.1.0
npm WARN node_modules/eslint-plugin-putout
❯ node -v
v18.17.1
❯ npm -v
9.6.7
coderaiser commented
You can do one of this:
npm install --save --legacy-peer-deps
;- upgrade
@babel/core
to latest version; - or use previous version of 🐊Putout instead of v31;
https://weekendprojects.dev/posts/fix-for-npm-conflicting-peer-dependency-error/
EvgenyOrekhov commented
I don't use @babel/core
directly. I guess one of my dependencies requires @babel/core
v7. I wonder why npm doesn't show me which dependency that is.
coderaiser commented
You can try something like this:
npm info name-of-dependency peerDependencies
Or npm ls --all
coderaiser commented
Is it works for you?