Repository navigation
fix(build): pin node 24.21.0 for cloudflare builds - #538
Merged
Merged
Conversation
.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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Pins
.nvmrcfrom24to24.21.0.Why
Every Workers Build since the evening of 2026-10-14 fails before installing dependencies:
.nvmrc=24resolves to the newest 24.x, and Node 24.22.0 was released that day. pnpm 12 no longer shipsbin/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