ICIJ / node-tika

Apache Tika bridge for Node.js. Text and metadata extraction, language detection and more.
MIT License
138 stars 36 forks source link

Module version mismatch - Electron app #13

Open amirhouieh opened 8 years ago

amirhouieh commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

@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 commented 8 years ago

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.