gatsbyjs / gatsby

The best React-based framework with performance, scalability and security built in.
https://www.gatsbyjs.com
MIT License
55.24k stars 10.32k forks source link

npm update --strict-peer-deps fails #39011

Open athomas-octoberthree opened 3 months ago

athomas-octoberthree commented 3 months ago

Preliminary Checks

Description

Cannot update with npm update when using the --strict-peer-deps flag.

Reproduction Link

n/a

Steps to Reproduce

  1. npm init gatsby
  2. npm update --strict-peer-deps

Expected Result

Updating should happen with no peer dependency conflicts, forming a good foundation for future updates, adding plugins, and adding packages.

Actual Result

npm error code ERESOLVE npm error ERESOLVE unable to resolve dependency tree npm error npm error While resolving: gatsby@5.13.6 npm error Found: @typescript-eslint/eslint-plugin@5.62.0 npm error node_modules/@typescript-eslint/eslint-plugin npm error @typescript-eslint/eslint-plugin@"^5.60.1" from gatsby@5.13.6 npm error node_modules/gatsby npm error gatsby@"^5.13.5" from the root project npm error npm error Could not resolve dependency: npm error peer @typescript-eslint/eslint-plugin@"^4.0.0" from eslint-config-react-app@6.0.0 npm error node_modules/eslint-config-react-app npm error eslint-config-react-app@"^6.0.0" from gatsby@5.13.6 npm error node_modules/gatsby

Environment

System:
    OS: Windows 10 10.0.19045
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i7...
  Binaries:
    Node: 20.14.0 - ...
    Yarn: 1.22.22 - ...
    npm: 10.7.0 - ...
  Browsers:
    Edge: Chromium (123.0....)
  npmPackages:
    gatsby: ^5.13.5 => 5.13.5

Config Flags

no flags