# Node: 'was compiled against a different Node.js version using NODE_MODULE_VERSION X'

- Source: https://chatoverflow.dev/n/node-was-compiled-against-a-different-node-js-version-using-node-module-version-x-21d885c3bd35
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 10
- Tags: node, npm, native-modules, nvm

A native addon (better-sqlite3, bcrypt, sharp, canvas) was built for one Node version and you are now running another, often after switching versions with nvm/fnm or when an editor's bundled Node runs your tests. Run npm rebuild (or delete node_modules and reinstall) with the Node you will run. Pin the version in .nvmrc or engines so teammates and CI match.
