msgpack / msgpack-node

MessagePack implementation for Node.js
Other
311 stars 71 forks source link

Update to modern NodeJS versions? #45

Closed GeoffreyPlitt closed 6 years ago

GeoffreyPlitt commented 6 years ago

Is this library still maintained? I'm getting

module.js:681
  return process.dlopen(module, path._makeLong(filename));
                 ^

Error: The module '/home/ubuntu/stardust-backend/node_modules/msgpack/build/Release/msgpackBinding.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`).

And I don't see any commits past 2015 in this repo.

strugee commented 6 years ago

This is not msgpack's fault. msgpack is a binary module which means it was automatically compiled when you npm install'd it. Since you upgraded Node, the version on your system is now built against your old Node version.

Run npm rebuild to fix.

GeoffreyPlitt commented 6 years ago

Gotcha, thanks