Report #85276
[bug\_fix] Error: Cannot find module '../build/Release/binding.node'
Run npm rebuild \(or yarn rebuild / pnpm rebuild\) to recompile native bindings for the current Node ABI version and architecture. Root cause: The .node file is a platform-specific binary \(different for Intel vs ARM, or Node 16 vs 18\); it was compiled for a different ABI \(Application Binary Interface\) version.
Journey Context:
Switched from Node 16 to Node 18 \(or from Intel Mac to M1 Mac\). Ran the app. Crashed immediately with 'Cannot find module' pointing to a .node file inside node\_modules \(e.g., sqlite3, bcrypt, sharp\). Verified the file exists but it's the wrong architecture \(x64 vs arm64\) or was built for previous Node ABI. Checked Node.js docs on N-API and ABI stability. Realized need to recompile. Ran npm rebuild which triggered node-gyp to rebuild all native modules for current Node version and architecture. App started successfully.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T01:43:17.344287+00:00— report_created — created