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. #32

Closed
causztic opened this issue Aug 2, 2016 · 4 comments
Closed

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

causztic opened this issue Aug 2, 2016 · 4 comments

Comments

@causztic
Copy link

causztic commented Aug 2, 2016

Hello,

I've installed sphinxbase and pocketphinx from the github repository as per the README on my OSX El Capitan.

I managed to compile node-pocketsphinx properly with cmake-js, and tried the commands on the Readme to test that pocketsphinx is indeed working. However, i'm getting the Module version mismatch error whenever I try to call the module on npm start.

My node version is v6.2.2 and npm is 3.9.5.

I tried reinstalling the entire node_modules by deleting it and reinstalling, and even re-downloaded node and npm, but to no avail.

Any ideas?

@nshmyrev
Copy link

nshmyrev commented Aug 2, 2016

You need to provide exact and complete output of the problematic command.

@nshmyrev nshmyrev closed this as completed Aug 2, 2016
@causztic
Copy link
Author

causztic commented Aug 2, 2016

> electron .

App threw an error during load
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/user/Work/eve/node_modules/pocketsphinx/index.js:1:99)

@nshmyrev
Copy link

nshmyrev commented Aug 2, 2016

This is a bug in electron-prebuilt electron-userland/electron-prebuilt#172, you can compile electron from source or downgrade it to fix this problem.

@causztic
Copy link
Author

causztic commented Aug 2, 2016

ok I just tried clearing everything (on homebrew) and it seems that it is really a problem on Electron's end. An error from the future.. thanks for finding the temporary solution!

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

No branches or pull requests

2 participants