Skip to content

Commit e72bd20

Browse files
committed
Fix Comic Hub CI npm install hang
Two changes: - Add engines.node >=20.9 to comic-hub/package.json. Matches Next.js 16 minimum and prevents accidental installs on unsupported runtimes. - Add 'npm cache clean --force' step before 'npm ci' in the Comic Hub workflow. Two consecutive CI runs failed at npm ci with 'npm error Exit handler never called!' (npm/cli#8336) — a known npm 11 bug triggered by stale/corrupt cache state. The setup-node@v6 cache: 'npm' directive restores cache between runs, so a corrupt entry poisons subsequent runs. Clean cache step forces fresh fetch.
1 parent c5d0a58 commit e72bd20

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/angular.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ jobs:
3434
cache: 'npm'
3535
cache-dependency-path: comic-hub/package-lock.json
3636

37+
- name: Clean npm cache
38+
run: npm cache clean --force
39+
3740
- name: Install dependencies
3841
run: npm ci
3942

comic-hub/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
"name": "comic-hub",
33
"version": "0.1.0",
44
"private": true,
5+
"engines": {
6+
"node": ">=20.9"
7+
},
58
"scripts": {
69
"dev": "next dev",
710
"build": "next build",

0 commit comments

Comments
 (0)