Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module version mismatch. Expected 49, got 48 on Node 6.3.0 #172

Closed
thanpolas opened this issue Aug 3, 2016 · 2 comments
Closed

Module version mismatch. Expected 49, got 48 on Node 6.3.0 #172

thanpolas opened this issue Aug 3, 2016 · 2 comments

Comments

@thanpolas
Copy link

Hello,

I recently upgraded to node 6.3.0 and npm 3.10.5, I use mdns 2.3.3, everything installs fine with npm install (after i have rm -rf node_modules) but when I launch the app mdns fails with a message:

Error: Module version mismatch. Expected 49, got 48.
    at Error (native)
    at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:167:20)
    at Object.Module._extensions..node (module.js:568:18)
    at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:167:20)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/Users/thanpolas/Projects/work/xxx/xxx/node_modules/mdns/lib/dns_sd.js:25:20)

... and the stack goes on ...

This is an Electron application running on electron 1.3.1

Any advice is welcome

@agnat
Copy link
Owner

agnat commented Aug 3, 2016

The add-on was build using one version of node and plugged into a different version, the one that ships with electron.

Make sure you build the add-on the electron way (not an expert here).

@agnat agnat closed this as completed Aug 3, 2016
@thanpolas
Copy link
Author

thank you @agnat! running ./node_modules/.bin/electron-rebuild did the trick

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants