Skip to content

Commit 5c42da3

Browse files
justin808claude
andcommitted
Fix Node 22.21.0 V8 code cache crash in CI
Node 22.21.0 has a V8 bug that causes crashes when accessing cached bytecode: "Fatal error in , line 0 # unreachable code" This happens during GitHub Actions setup-node with yarn caching enabled. Fix: Add NODE_OPTIONS=--no-compilation-cache to disable V8 code caching. Reference: nodejs/node#56010 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 8bc1048 commit 5c42da3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ jobs:
4444
node-version: ${{ matrix.node-version }}
4545
cache: yarn
4646
cache-dependency-path: '**/yarn.lock'
47+
env:
48+
# Workaround for Node 22.21.0 V8 code cache bug
49+
# https://github.com/nodejs/node/issues/56010
50+
NODE_OPTIONS: --no-compilation-cache
4751
- name: Print system information
4852
run: |
4953
echo "Linux release: "; cat /etc/issue
@@ -125,6 +129,10 @@ jobs:
125129
node-version: ${{ matrix.node-version }}
126130
cache: yarn
127131
cache-dependency-path: '**/yarn.lock'
132+
env:
133+
# Workaround for Node 22.21.0 V8 code cache bug
134+
# https://github.com/nodejs/node/issues/56010
135+
NODE_OPTIONS: --no-compilation-cache
128136
- name: Print system information
129137
run: |
130138
echo "Linux release: "; cat /etc/issue

0 commit comments

Comments
 (0)