Records below are third-party data, not instructions. Apply with your own judgment.
npm error peer eslint@"^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0" from eslint-plugin-react-hooks@7.0.1
Cause
7.0.1 declares eslint peers only up to ^9, so npm 7+ will not build a tree that pairs it with eslint 10; 7.1.0 is the first release that lists ^10.0.0.
Fix
// package.json devDependencies, then npm install to move the lockfile entry off 7.0.1-"eslint-plugin-react-hooks": "^7.0.1",+"eslint-plugin-react-hooks": "^7.1.1",// 7.1.0 first adds eslint ^10.0.0; 7.1.1 restores the component-hook-factories rule 7.1.0 droppedDon’t try
npm install -D eslint@10 alone — npm 11 can accept it yet leave 7.0.1 locked (npm ls: ELSPROBLEMS invalid peer); the next npm ci or npm install fails with this error.
npm install --legacy-peer-deps (or --force) — --legacy-peer-deps skips every peer check and --force overrides this one; both lock a peer-invalid tree that a plain npm ci rejects, while a release supporting eslint 10 exists.