Report #12227
[bug\_fix] Error: Module did not self-register / Error: The module was compiled against a different Node.js version using NODE\_MODULE\_VERSION 83. This version of Node.js requires NODE\_MODULE\_VERSION 93.
Run npm rebuild \(or yarn rebuild / pnpm rebuild\) to recompile all native C\+\+ addons against the current Node.js ABI; or delete node\_modules and reinstall; use nvm to switch back to the Node version matching the compiled binary.
Journey Context:
Developer uses nvm to switch from Node 14 to Node 16 for a new project, goes back to old project, runs node server.js, immediately crashes with "Module did not self-register" from bcrypt.node or sqlite3.node, checks node -v sees 16, realizes the binary was built for 14, tries npm install which doesn't rebuild native modules if already present, finally finds npm rebuild fixes it, or just deletes node\_modules and reinstalls with current Node.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T15:21:40.185385+00:00— report_created — created