<p>This probably happened because you updated your node version after your installation of bcoin. You need to recompile the C++ bindings for the leveldown module to fix this. Checkout npm rebuild: <a href="https://docs.npmjs.com/cli/rebuild" rel="nofollow noreferrer">https://docs.npmjs.com/cli/rebuild</a></p>

CC BY-SA 3.0
2017-08-03T22:34:34.923Z
2017-08-03T22:34:34.923Z
Bucko
<p>I installed bcoin and I get this error about the version:</p>

<pre><code>$ node -v
v8.2.1
$ npm -v
5.3.0
$ bcoin
/usr/lib/node_modules/bcoin/lib/db/backends.js:26
    throw e;
     ^
Error: The module '/usr/lib/node_modules/bcoin/node_modules/leveldown/build/Release/leveldown.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 48. This version of Node.js requires
NODE_MODULE_VERSION 57. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
    at Object.Module._extensions..node (module.js:598:18)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at Module.require (module.js:513:17)
    at require (internal/module.js:11:18)
    at bindings (/usr/lib/node_modules/bcoin/node_modules/leveldown/node_modules/bindings/bindings.js:76:44)
    at Object.&lt;anonymous&gt; (/usr/lib/node_modules/bcoin/node_modules/leveldown/leveldown.js:4:46)
    at Module._compile (module.js:569:30)
    at Object.Module._extensions..js (module.js:580:10)
</code></pre>

<p>any ideas why?</p>

<full-node><javascript>
Bcoin crashes with node version error
Thann
# Bcoin crashes with node version error

(Asked by: username_0 on 2017-08-03)

I installed bcoin and I get this error about the version:
$ node -v
v8.2.1
$ npm -v
5.3.0
$ bcoin
/usr/lib/node_modules/bcoin/lib/db/backends.js:26
    throw e;
     ^
Error: The module '/usr/lib/node_modules/bcoin/node_modules/leveldown/build/Release/leveldown.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 48. This version of Node.js requires
NODE_MODULE_VERSION 57. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
    at Object.Module._extensions..node (module.js:598:18)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at Module.require (module.js:513:17)
    at require (internal/module.js:11:18)
    at bindings (/usr/lib/node_modules/bcoin/node_modules/leveldown/node_modules/bindings/bindings.js:76:44)
    at Object. (/usr/lib/node_modules/bcoin/node_modules/leveldown/leveldown.js:4:46)
    at Module._compile (module.js:569:30)
    at Object.Module._extensions..js (module.js:580:10)

any ideas why?

**Tags:** full-node, javascript


---

## 1 answers

### Answer by username_1 on 2017-08-03. Score: 2 | Accepted answer

This probably happened because you updated your node version after your installation of bcoin. You need to recompile the C++ bindings for the leveldown module to fix this. Checkout npm rebuild: <https://docs.npmjs.com/cli/rebuild>


---

