Report #6826
[bug\_fix] 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 108.
Delete the node\_modules folder and package-lock.json \(or yarn.lock/pnpm-lock.yaml\) and run npm install again to force recompilation of native modules against the new Node.js ABI. Alternatively, run npm rebuild for a faster fix without deleting lock files.
Journey Context:
Developer upgrades Node.js from 14.x to 18.x using nvm or installer. Runs existing project. Gets ABI mismatch error on native modules like bcrypt, sqlite3, or sharp. The error mentions NODE\_MODULE\_VERSION 83 \(Node 14\) vs 108 \(Node 18\). Developer tries npm install again, but node\_modules is cached. Tries npm rebuild but gets the same error. Realizes that npm install doesn't recompile native modules if the package version hasn't changed. Must run npm rebuild or delete node\_modules and package-lock.json and reinstall. Or use npx node-gyp rebuild for specific packages. The root cause is N-API/ABI stability - native modules bind to specific V8 versions via process.versions.modules.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T01:10:03.357880+00:00— report_created — created