mcpField
B
better-sqlite3-rebuild

better-sqlite3-rebuild

github.com/mattpocockDevelopment229124 installsUpdated 30w ago
Repository

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

  1. 01Detect Node.js version mismatch errors
  2. 02Rebuild dependencies with npm rebuild
  3. 03Retry after rebuilding

Use cases

  1. 01Fixing NODE_MODULE_VERSION mismatch errors
  2. 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-rebuild

After installing, type/better-sqlite3-rebuildin Claude Code to confirm it loaded.

Details

From the project README

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.

Comments

Markdown supported