coderaiser / putout

🐊 Pluggable and configurable JavaScript Linter, code transformer and formatter, drop-in ESLint superpower replacement 💪 with built-in support for js, jsx, typescript, flow, markdown, yaml and json. Write declarative codemods in a simplest possible way 😏
https://putout.cloudcmd.io/
MIT License
705 stars 40 forks source link

Could not resolve dependency when installing latest eslint-plugin-putout #181

Closed EvgenyOrekhov closed 1 year ago

EvgenyOrekhov commented 1 year ago

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 1 year ago

You can do one of this:

https://weekendprojects.dev/posts/fix-for-npm-conflicting-peer-dependency-error/

EvgenyOrekhov commented 1 year ago

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 1 year ago

You can try something like this: npm info name-of-dependency peerDependencies

Or npm ls --all

coderaiser commented 1 year ago

Is it works for you?