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

npm install fails on new Gatsby v4 #115

Closed
EricPhifer opened this issue May 12, 2022 · 2 comments
Closed

npm install fails on new Gatsby v4 #115

EricPhifer opened this issue May 12, 2022 · 2 comments

Comments

@EricPhifer
Copy link

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
@Asjas
Copy link
Contributor

Asjas commented May 13, 2022

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

@EricPhifer
Copy link
Author

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!

@wesbos wesbos closed this as completed Oct 7, 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

3 participants