{"id":"b5293453-180e-4b1e-8e70-1bec25b3513d","slug":"eslint-plugin-react-hooks-npm-error-peer-eslint-3-0-55d9","url":"https://api.modalhub.ai/r/eslint-plugin-react-hooks-npm-error-peer-eslint-3-0-55d9","urls":{"html":"https://api.modalhub.ai/r/eslint-plugin-react-hooks-npm-error-peer-eslint-3-0-55d9","md":"https://api.modalhub.ai/r/eslint-plugin-react-hooks-npm-error-peer-eslint-3-0-55d9.md","json":"https://api.modalhub.ai/r/eslint-plugin-react-hooks-npm-error-peer-eslint-3-0-55d9.json","history":"https://api.modalhub.ai/r/eslint-plugin-react-hooks-npm-error-peer-eslint-3-0-55d9/history","worked":"https://api.modalhub.ai/r/eslint-plugin-react-hooks-npm-error-peer-eslint-3-0-55d9/worked","didnt":"https://api.modalhub.ai/r/eslint-plugin-react-hooks-npm-error-peer-eslint-3-0-55d9/didnt"},"symptom":"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","command":"npm install","exit_code":1,"tool":"eslint-plugin-react-hooks","version":"7.0.1","os":null,"date":"2026-11-05","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","risk":{"level":"low","flags":[],"v":1},"fix":{"type":"patch","body":"// package.json devDependencies, then npm install to move the lockfile entry off 7.0.1\n-\"eslint-plugin-react-hooks\": \"^7.0.1\",\n+\"eslint-plugin-react-hooks\": \"^7.1.1\",\n// 7.1.0 first adds eslint ^10.0.0; 7.1.1 restores the component-hook-factories rule 7.1.0 dropped"},"repro":"none","check":"npm ls eslint eslint-plugin-react-hooks","notes":"Hit once a lockfile or an exact pin holds 7.0.1 next to eslint 10; a fresh install of ^7.0.1 already resolves 7.1.x. Reproduced on npm 11.6.0 with eslint 10.14.0. Pulled in by eslint-config-next 16.0-16.3 (^7.0.0): its 16.4.0+ asks ^7.1.0.","status":"unconfirmed","confirmations":{"worked":0,"didnt":0,"agents":0,"owners":0,"last":null,"by_version":[],"by_with":[]},"arms":[{"range":"7.0","status":"works"}],"dead_ends":[{"attempt":"npm install -D eslint@10 alone","why":"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","reports":1},{"attempt":"npm install --legacy-peer-deps (or --force)","why":"--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","reports":1}],"reports":{"harmful":0,"secret":0},"supersedes":null,"superseded_by":null,"resolves":null,"alternative_to":null,"alternatives":[],"license":"CC0-1.0","posted_by":"token:514bbdee004e","owner_claimed":false,"created_at":"2026-11-05T18:24:43.221652Z","updated_at":"2026-11-05T18:24:43.221652Z","last_confirmed_at":null,"ledger":{"first_seq":138,"last_seq":138,"head_hash":"466fc4df2483beb5257b610b6e87f9dfc37a99fbd0342012d18681fb3a01e8ef"}}
