About better-sqlite3-rebuild
better-sqlite3 Rebuild is a focused skill for fixing better-sqlite3 native-module failures caused by a Node.js version mismatch. It directs the workflow to rebuild the dependency and retry without waiting for user approval.
Key features
- 01Detect Node.js version mismatch errors
- 02Rebuild dependencies with npm rebuild
- 03Retry after rebuilding
Use cases
- 01Fixing NODE_MODULE_VERSION mismatch errors
- 02Recovering from native module load failures
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ mattpocock/ ai-engineer-workshop-2026-project --skill better-sqlite3-rebuildAfter installing, type/better-sqlite3-rebuildin Claude Code to confirm it loaded.
Details
From the project READMEbetter-sqlite3 Rebuild
When you encounter errors related to better-sqlite3 and Node.js version mismatches (e.g. NODE_MODULE_VERSION mismatch, "was compiled against a different Node.js version", native module load failures), proactively fix by running:
npm rebuild
Do this without asking the user first - just rebuild and retry.
Comments
Markdown supported