better-sqlite3-rebuild
This skill automatically runs npm rebuild and retries whenever better-sqlite3 native module errors appear, covering NODE_MODULE_VERSION mismatch, "compiled against a different Node.js version", and other native binding failures. It lets an AI agent self-heal broken dependencies without interrupting the user, cutting troubleshooting time from tens of minutes to seconds and keeping the development loop moving.
npx skills add https://github.com/mattpocock/ai-engineer-workshop-2026-project --skill better-sqlite3-rebuildBefore / After Comparison
1 组When developers hit a NODE_MODULE_VERSION mismatch or native binding load failure, they often suspect their own code first, search the error, delete node_modules, reinstall, and switch Node versions. The whole loop easily burns half an hour or more.
This Skill recognizes the same class of native module errors, runs npm rebuild, and retries immediately without asking the user. A single rebuild usually restores a working environment, so developers never have to break focus to fix dependencies manually.
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:
npm rebuild
Do this without asking the user first - just rebuild and retry.
User Reviews (0)
Write a Review
No reviews yet
Statistics
User Rating
Rate this Skill