ELF, binary-looking MZ, shell syntax, and executable-loader errors all occur before TypeScript, Vite, Vitest, or a workspace package starts.One assumption, four runners.
Nested library and Web scripts.
Check and CI aggregates.
Both hardcode the Node wrapper.
Recover with an exact JavaScript entrypoint.
corepack prepare pnpm@11.7.0 --activate
corepack pnpm exec node -p "process.env.npm_execpath"
corepack pnpm install --frozen-lockfile
corepack pnpm run buildContinue only when the probe ends in .js, .cjs, or .mjs. rc.8 also requires Node ^22.19.0 or >=24.0.0.
shell: true the universal fix.JavaScript entries need Node; native binaries and POSIX shebang launchers run directly; Windows command shims need an explicit documented branch.
Restore the complete gate chain.
Exact Node, pnpm, commit, and entrypoint.
Library and Web artifacts complete.
Type and invariant gates pass.
Gates, coverage, and Web snapshots run.
Primary evidence.
- Linux pnpm 11 ELF reproduction #3532
- mise reproduction #3475
- Windows standalone reproduction #3440
- rc.8 build runner
Keep the entrypoint matrix.
The complete runbook covers both observed signatures, diagnostics, bounded recovery, four affected runners, unsafe shortcuts, neighboring pnpm failures, and twelve upstream regression gates.
Read the complete runbook