Better Sqlite3 Rebuild

Use when seeing errors about better-sqlite3 native module, NODE_MODULE_VERSION mismatch, "was compiled against a different Node.js version", or similar native binding errors.

mattpocock b4b2144 573 B Updated 236k repo stars

File contents

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.

mattpocock/ai-engineer-workshop-2026-project/tree/main/.claude/skills/better-sqlite3-rebuild commit b4b2144b06

Frequently asked questions

npx skillmds@latest add mattpocock/better-sqlite3-rebuild