Home/AI Dev Tools & Workflow/better-sqlite3-rebuild
B

better-sqlite3-rebuild

by @mattpocockv
4.0(120)

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.

better-sqlite3native-modulenode-versiontroubleshootingnpm-rebuildGitHub
Installation
npx skills add https://github.com/mattpocock/ai-engineer-workshop-2026-project --skill better-sqlite3-rebuild
compare_arrows

Before / After Comparison

1 组
Before

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.

After

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.

SKILL.md

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

Effect
Usability
Docs
Compatibility

No reviews yet

Statistics

Installs101
Rating4.0 / 5.0
Version
Updated2026年9月21日
Comparisons1

User Rating

4.0(120)
5
37%
4
43%
3
13%
2
5%
1
2%

Rate this Skill

0.0

Compatible Platforms

🤖claude-code

Timeline

Created2026年9月21日
Last Updated2026年9月21日
🎁 Agent Knowledge Cards
Survey