wesbos / eslint-config-wesbos

No-Sweat™ Eslint and Prettier Setup - with or without VS Code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

npm install fails on new Gatsby v4

EricPhifer opened this issue · comments

commented

Hello! I'm building a new web environment, which always includes eslint-config-wesbos for me. This time I'm getting this:

ericphifer@Erics-MBP gatsby-prlogin % npm i -D eslint-config-wesbos
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: gatsby-starter-hello-world@0.1.0
npm ERR! Found: eslint@7.32.0
npm ERR! node_modules/eslint
npm ERR!   dev eslint@"^7.32.0" from the root project
npm ERR!   peer eslint@"^7.5.0 || ^8.0.0" from @babel/eslint-parser@7.17.0
npm ERR!   node_modules/@babel/eslint-parser
npm ERR!     dev @babel/eslint-parser@"^7.17.0" from the root project
npm ERR!     peer @babel/eslint-parser@"^7.16.3" from eslint-config-wesbos@3.0.2
npm ERR!     node_modules/eslint-config-wesbos
npm ERR!       dev eslint-config-wesbos@"*" from the root project
npm ERR!   2 more (@typescript-eslint/eslint-plugin, @typescript-eslint/parser)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer eslint@"^8.4.1" from eslint-config-wesbos@3.0.2
npm ERR! node_modules/eslint-config-wesbos
npm ERR!   dev eslint-config-wesbos@"*" 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/ericphifer/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/ericphifer/.npm/_logs/2022-05-12T20_47_50_401Z-debug-0.log

npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps

@EricPhifer Please re-run the command with --force or --legacy-peer-deps and see if it works? 🙂

npm i -D --force eslint-config-wesbos
commented

AJ, thanks for getting back to me on this. I did try npm i eslint-config-wesbos --legacy-peer-deps this morning, which did work. Thanks again!