Repository navigation
CI tests fail under Node.js 24.15.0 LTS (EBADF) #813
Description
Activity
PR #652 from @geigerzaehler could be reopened and rebased to workaround the Yarn pnp issues in this repo that affect only CI tests and usage. The PR migrates Corepack from Yarn
pnpto Yarnnode-modules.Resolution of the general issue that Yarn pnp users are having could then be decoupled from Corepack needs.
PR #652 was originally rejected with the statement:
I'll close it then; as a package manager author I find it somewhat reassuring to have at least one Node.js project using PnP (or loaders in general). If Corepack moves out of the Node.js org it can be revisited.
That has proved to be ineffective as an advance test of compatibility, since Yarn users outside of Corepack have already found and reported the issue, whereas here in the Corepack repo the issue has not yet caused a failure. It's only been reported here because I manually tested compatibility locally. The fact that CI has not yet failed is also due to CI not having been extended to test under Node.js 25. The highest test version is Node.js 24.
MikeMcC399 commented
on Apr 21, 2026 on Apr 21, 2026 · Hidden as outdatedAuthorshow commentMore actionsMikeMcC399 commented
on Apr 24, 2026 on Apr 24, 2026 · Hidden as outdatedAuthorshow commentMore actions- added a commit that references this issue
on May 2, 2026 MikeMcC399 commented
on May 6, 2026 on May 6, 2026 · Hidden as outdatedAuthorshow commentMore actions- This issue is partially resolved by PR chore(deps): bump engine support matrix #831
It's also a race for who is first concerning the
corepack yarn linterror on Node.js 24.15.0:- Node.js is scheduling a release of 24.16.0 for 2026-05-21 including PR fs: restore fs patchability in ESM loader node#62835
- GitHub Actions is scheduling runner image updates for May 19 - May 26, 2026 to update the default Node.js version from 20 to 22. It's unclear whether there will be a deployment for ubuntu-latest prior to those dates which updates the cached Node.js version from 24.14.1 to 24.15.0 at the same time
Reacted by lukkeaI'm closing this now, as
EBADFis no longer occurring.- CI lint fails under Node.js 24.15.0 LTS (TypeError) - Rev2 #837 is the remaining issue
Current behavior
Running
typecheck,lintortest, as used in .github/workflows/ci.yml, fails when run locally under Node.js 24.15.0 LTS with:This issue
can also be expected to appear soonappears under GitHub Actions and causes CI workflow failureif / whensince the cached Node.js versions in GitHub Actions runner images are updated to include Node.js 24.15.0 LTS.Expected behavior
It should be possible to test Corepack successfully under Node.js Active LTS, including under the latest release Node.js 24.15.0.
Versions
Corepack
0.34.7Ubuntu
24.04.4LTSNode.js
24.15.0(Active LTS)Yarn
4.11.0Steps to reproduce
Install Node.js 24.15.0 LTS, then execute:
Logs
Other
The corresponding Yarn Berry issues:
state that this issue is fixed in yarn@v4.14.1
The results of attempting to fix with an upgrade are as follows:
corepack yarn typecheckcorepack yarn lintcorepack yarn testTypeError issue carried over to #814 for issue separation purposes.