JustinTulloss/zeromq.node

zmq.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 59. This version of Node.js requires NODE_MODULE_VERSION 54.

Closed this issue · 3 comments

I'm getting an error like follows in Node.js (Electron). Any ideas why?

screen shot 2018-05-28 at 11 50 07 pm

Figured it out.

npm install electron-rebuild && ./node_modules/.bin/electron-rebuild

I am getting the same error and
runnig: npm install electron-rebuild && ./node_modules/.bin/electron-rebuild
did not solved the problem.

I did the folloing:
1 - npm install electron
2 - npm install zeromq
3 - npm install --save-dev electron-rebuild
4 - .\node_modules.bin\electron-rebuild.cmd

Anyone could help?

C:\Dev\MyElectronApp3\node_modules\zeromq\build\Release\zmq.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 48. This version of Node.js requires
NODE_MODULE_VERSION 73. Please try re-compiling or re-installing
the module (for instance, using npm rebuild or npm install).
at process.func (electron/js2c/asar.js:155:31)
at process.func [as dlopen] (electron/js2c/asar.js:155:31)
at Object.Module._extensions..node (internal/modules/cjs/loader.js:828:18)
at Object.func (electron/js2c/asar.js:155:31)
at Object.func [as .node] (electron/js2c/asar.js:155:31)
at Module.load (internal/modules/cjs/loader.js:645:32)
at Function.Module._load (internal/modules/cjs/loader.js:560:12)
at Module.require (internal/modules/cjs/loader.js:685:19)
at require (internal/modules/cjs/helpers.js:16:16)
at Object. (C:\Dev\MyElectronApp3\node_modules\zeromq\lib\index.js:6:11)

I'm running into this problem again, but this time electron-rebuild isn't helping (@sebaster44 any luck?). I'll post back if I find out what's up.