Skip to content

fix(build): pin node 24.21.0 for cloudflare builds - #538

Merged
TheMeinerLP merged 1 commit into
mainfrom
fix/pin-node-for-cloudflare-builds
Oct 14, 2026
Merged

TheMeinerLP merged 1 commit into
mainfrom
fix/pin-node-for-cloudflare-builds

Conversation

@TheMeinerLP

Copy link
Copy Markdown
Collaborator

Summary

Pins .nvmrc from 24 to 24.21.0.

Why

Every Workers Build since the evening of 2026-10-14 fails before installing dependencies:

Detected the following tools from environment: nodejs@24.22.0, pnpm@12.11.2
Installing project dependencies: pnpm install --frozen-lockfile
Error: Cannot find module '/opt/buildhome/.cache/node/corepack/v1/pnpm/12.11.2/bin/pnpm.cjs'
Failed: error occurred while installing tools or dependencies

.nvmrc = 24 resolves to the newest 24.x, and Node 24.22.0 was released that day. pnpm 12 no longer ships bin/pnpm.cjs; corepack < 0.35 still looks for it (reproduced locally: corepack 0.31–0.34 fail with exactly this error, 0.35+ works). Builds on 24.21.0 with the same pnpm 12.11.2 succeeded until then (e.g. v1.29.0). Production is still on v1.29.0 because the v1.30.0 build failed.

The Cloudflare preview build on this PR is the check that the pin works.

https://claude.ai/code/session_01A9Zgvt4WR2zDBkAHaK1FjL

.nvmrc said "24", so Workers Builds picked Node 24.22.0 on its release
day; its install step then fails to set up pnpm 12.11.2 through corepack
(Cannot find module .../corepack/v1/pnpm/12.11.2/bin/pnpm.cjs) and every
build since has failed. 24.21.0 built fine until then.

Claude-Session: https://claude.ai/code/session_01A9Zgvt4WR2zDBkAHaK1FjL
@TheMeinerLP
TheMeinerLP merged commit 2918f27 into main Oct 14, 2026
8 checks passed
@TheMeinerLP
TheMeinerLP deleted the fix/pin-node-for-cloudflare-builds branch October 14, 2026 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant