Skip to content

Commit 8aa1792

Browse files
noodaneeclaude
andcommitted
fix(ci): 升级 npm 版本以修复 Alpine 构建失败
在 linux-musl-x64 job 中添加 npm 升级步骤,解决 Alpine 自带的 npm 版本存在 "Exit handler never called!" 错误。 这是 Alpine apk 提供的旧版 npm 的已知 bug,升级到最新 版本可以解决进程退出处理和网络连接的兼容性问题。 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 2c77495 commit 8aa1792

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,9 @@ jobs:
145145
- name: Install system dependencies
146146
run: apk add --no-cache nodejs npm bash build-base cmake ninja python3 curl unzip git autoconf automake libtool pkgconfig
147147

148+
- name: Upgrade npm
149+
run: npm install -g npm@latest
150+
148151
- name: Setup Zig
149152
uses: mlugg/setup-zig@v2
150153
with:

0 commit comments

Comments
 (0)