
Better Sqlite3 Rebuild
Recover a local app that crashes on better-sqlite3 load after you change Node versions or pull fresh node_modules.
Install
npx skills add https://github.com/mattpocock/ai-engineer-workshop-2026-project --skill better-sqlite3-rebuildWhat is this skill?
- Triggers on better-sqlite3 native module and NODE_MODULE_VERSION mismatch errors
- Runs `npm rebuild` immediately without asking the user first
- Retries the failing operation after rebuild
- Scoped to better-sqlite3 binding failures, not generic SQLite SQL debugging
Adoption & trust: 18 installs on skills.sh; 146 GitHub stars; 3/3 security scanners passed (skills.sh audits).
Recommended Skills
Journey fit
Native binding failures surface as runtime errors once the stack is running or after environment churn, which maps to operating and fixing production-like breakage. NODE_MODULE_VERSION and “compiled against a different Node.js version” messages are classic error-handling and recovery work, not greenfield backend design.
Common Questions / FAQ
Is Better Sqlite3 Rebuild safe to install?
skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.
SKILL.md
READMESKILL.md - Better Sqlite3 Rebuild
# better-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: ```sh npm rebuild ``` Do this without asking the user first - just rebuild and retry.