mivion / swisseph

Swiss Ephemeris binding for node.js
GNU General Public License v2.0
205 stars 72 forks source link

Was compiled against a different Node.js version #49

Closed albertkai closed 6 years ago

albertkai commented 6 years ago

After upgrading to Node 8, getting the errors: Error: The module '/Users/user/projects/microcosm_alpha/web/node_modules/swisseph/build/Release/swisseph.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 48. This version of Node.js requires NODE_MODULE_VERSION 57. Please try re-compiling or re-installing. Seems the bindings need to be recompiled against the recent node versions

keel commented 6 years ago

Maybe node_modules/swisseph was compiled by old version node, I think run rm -rf node_modules/swisseph && npm install swisseph on your server may fix that.

albertkai commented 6 years ago

@keel thank you! Yes, the problem was that meteor uses its own node version. After upgrading the system node to the same version that meteor uses everything went good.