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 - Electron app #13

Open
amirhouieh opened this issue May 9, 2016 · 3 comments
Open

Module version mismatch - Electron app #13

amirhouieh opened this issue May 9, 2016 · 3 comments

Comments

@amirhouieh
Copy link

amirhouieh commented May 9, 2016

I'm trying to get Tika module to work in an electron app, but as soon as I require the module, I get this error:
Uncaught Error: Module version mismatch. Expected 47, got 46.
I am using nodeVersion v4.2.1 and npmVersion 2.14.7

@moxious
Copy link

moxious commented May 9, 2016

FWIW I recently saw this same error message; in my case it was caused by upgrading to node 6 using home brew. I didn't fully explore why it was happening but downgrading to node 5.11.0 fixed the issue.

@amirhouieh amirhouieh reopened this May 9, 2016
@amirhouieh
Copy link
Author

amirhouieh commented May 9, 2016

@moxious Tnx, node v5.11.0 worked!

So I think the issue is about the NODE_MODULE_VERSION which apparently version 47 is compatible with current version of tika.

@mattcg
Copy link
Contributor

mattcg commented May 31, 2016

The issue might be caused by the node-java dependency being compiled against an older version of Node.js. Try deleting the node_modules/ directory and running npm update again.

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

3 participants