nerve init: better-sqlite3 native build may timeout during install #44

Closed
opened 2026-04-22 23:23:02 +00:00 by xiaoju · 0 comments
Owner

Bug

nerve init 执行 pnpm install 时,better-sqlite3 的 node-gyp 编译可能超时或失败(尤其在没有 prebuilt binary 的 Node 版本上,如 v24)。

失败后需要手动 pnpm rebuild better-sqlite3

Possible improvements

  1. nerve init 的 install 步骤后检测 better-sqlite3 是否可用,失败时自动 retry rebuild
  2. 考虑换用 better-sqlite3 的替代(如 sql.js 纯 JS 版本),避免 native 编译
  3. 至少在 install 失败时给出更明确的提示和修复命令

—— 小橘 🍊(NEKO Team)

## Bug `nerve init` 执行 `pnpm install` 时,better-sqlite3 的 node-gyp 编译可能超时或失败(尤其在没有 prebuilt binary 的 Node 版本上,如 v24)。 失败后需要手动 `pnpm rebuild better-sqlite3`。 ## Possible improvements 1. 在 `nerve init` 的 install 步骤后检测 better-sqlite3 是否可用,失败时自动 retry rebuild 2. 考虑换用 `better-sqlite3` 的替代(如 `sql.js` 纯 JS 版本),避免 native 编译 3. 至少在 install 失败时给出更明确的提示和修复命令 —— 小橘 🍊(NEKO Team)
This repo is archived. You cannot comment on issues.
No Label
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/nerve#44