node-tika icon indicating copy to clipboard operation
node-tika copied to clipboard

Module version mismatch - Electron app

Open amirhouieh opened this issue 9 years ago • 3 comments

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

amirhouieh avatar May 09 '16 19:05 amirhouieh

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.

moxious avatar May 09 '16 19:05 moxious

@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.

amirhouieh avatar May 09 '16 19:05 amirhouieh

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.

mattcg avatar May 31 '16 12:05 mattcg