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

Error: Module version mismatch. Expected 49, got 48 #40

Closed
wilsonpage opened this issue Jul 25, 2016 · 8 comments
Closed

Error: Module version mismatch. Expected 49, got 48 #40

wilsonpage opened this issue Jul 25, 2016 · 8 comments

Comments

@wilsonpage
Copy link

I'm getting the following ambiguous error:

Error: Module version mismatch. Expected 49, got 48.
    at Error (native)
    at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:158:20)
    at Object.Module._extensions..node (module.js:568:18)
    at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:158: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/wilsonpage/Documents/m/mozilla-magnet/magnet-client-desktop/node_modules/xpc-connection/index.js:3:15)
@wilsonpage
Copy link
Author

  • When run via Electron
  • Node v6.3.0

@wilsonpage
Copy link
Author

I used electron-rebuild which seemed to fix my issue 😄

@shankarsengalani
Copy link

shankarsengalani commented Aug 2, 2016

Hey @wilsonpage, I too have the same issue and by running ./node_modules/.bin/electron-rebuild in my root folder where I have my node_modules doesn't seems work.

@wilsonpage
Copy link
Author

I can't suggest anything really, this is all voodoo magic to me 🔥

@baboundu81
Copy link

Hi ! I have the same issue on mac, but not on windows :

  • node v6.3.1
  • npm v3.10.3
  • electron v1.3.2

electron-rebuild doesn't work either for me. @shankar2105 Did you found out how to fix the bug ?

@baboundu81
Copy link

In case anybody had the same issue, I finally fixed it, I forgot to set the environment variables for electron-rebuild script as mentioned here.

@sandover
Copy link

Not sure I understand your resolution -- the section on electron-rebuild doesn't mention needing or using environment variables.

@vohtaski
Copy link

vohtaski commented Nov 6, 2016

@sandover
I had a similar problem. The version of electron in the link above is npm_config_target=1.2.3
my electron had 1.4.5. As soon I fixed it in the script, the error disappeared..

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

5 participants