npm ci keeps dying in github actions with ERESOLVE
ERESOLVE unable to resolve dependency tree. That's all GitHub Actions prints before the job dies, and it only started after we bumped Node from 18 to 20 in the workflow. Runner is ubuntu-22.04, npm 10.2.4, lockfile was generated on npm 9. The package causing it is react-select 5.8.0 wanting react ^16.8 || ^17 as a peer while we're on 18.2.0. Locally npm install works fine, npm ci fails. I've tried deleting node_modules and the lockfile, no luck. Is there a way to make CI use the old resolver without downgrading Node again? We have about six repos on the same template so a workflow-level flag would be ideal.
4 replies