Report #57931
[bug\_fix] The module was compiled against a different Node.js version \(NODE\_MODULE\_VERSION mismatch\)
Delete node\_modules and package-lock.json, then run npm install to force recompilation of native addons against the current Node.js ABI, or run npm rebuild for a faster in-place rebuild.
Journey Context:
You use nvm or n to switch from Node.js 14 to Node.js 18, then run your existing project without reinstalling dependencies. You immediately get an error saying the module 'binding.node' was compiled against NODE\_MODULE\_VERSION 72 but requires 83. You check the Node.js releases and see that 72 corresponds to Node 12 and 83 to Node 18. You realize that native Node.js addons use the Application Binary Interface \(ABI\) which changes with each major Node.js version. The compiled .node binary in your node\_modules is stale. You try npm install but npm sees the packages are already present and skips rebuilding. You check the npm docs and learn that npm rebuild recompiles native addons for the current Node version without reinstalling everything. You run npm rebuild and it recompiles bcrypt, sqlite3, etc. against Node 18's V8 headers. The error disappears and the app starts.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T03:43:46.731579+00:00— report_created — created