Skip to content

NPM version error in electron #100

@janleskovec

Description

@janleskovec

Ok this is probbably just a noob question but I keep getting this error when using zerorpc in electron.

error message:

Uncaught Error: The module '/home/jan/Development/musicled/node_modules/zeromq/build/Release/zmq.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 67. This version of Node.js requires
NODE_MODULE_VERSION 64. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
    at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:166:20)
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:740)
    at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:166:20)
    at Module.load (internal/modules/cjs/loader.js:620)
    at tryModuleLoad (internal/modules/cjs/loader.js:559)
    at Function.Module._load (internal/modules/cjs/loader.js:551)
    at Module.require (internal/modules/cjs/loader.js:658)
    at require (internal/modules/cjs/helpers.js:20)
    at Object.<anonymous> (/home/jan/Development/musicled/node_modules/zeromq/lib/index.js:6)
    at Object.<anonymous> (/home/jan/Development/musicled/node_modules/zeromq/lib/index.js:848)

dependencies in my package.json:

"dependencies": {
    "zeromq": "^4.6.0",
    "zerorpc": "^0.9.8"
},
"devDependencies": {
    "electron": "3.0.2"
},
"scripts": {
    "start": "electron ."
}

I have tried changing versions, running npm rebuild... no success.

What am I doing wrong?
Thank you for your patience.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions