durs / node-activex

Node.JS Implementaion of ActiveXObject
MIT License
329 stars 62 forks source link

Please, update NODE_MODULE_VERSION for Electron above 4.0.3 #48

Closed Den2016 closed 5 years ago

Den2016 commented 5 years ago

When using Electron above 4.0.3, an error occurs.

Error: The module '\\? \C:\project\node_modules\winax\build\Release\node_activex.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 64. This version of Node.js requires
NODE_MODULE_VERSION 69.

Electron uses NODE_MODULE_VERSION 69 since version 4.0.4, npm rebuild winax --runtime = electron --target = 4.0.4 (and higher) does not take this into account. Please fix it.

durs commented 5 years ago

How to do it? Nowhere in the module NODE_MODULE_VERSION is not specified. Apparently determined automatically when calling "node-gyp configure"

чт, 18 апр. 2019 г. в 14:32, Denis notifications@github.com:

When using Electron above 4.0.3, an error occurs.

Error: The module '\? \C:\project\node_modules\winax\build\Release\node_activex.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 64. This version of Node.js requires NODE_MODULE_VERSION 69.

Electron uses NODE_MODULE_VERSION 69 since version 4.0.4, npm rebuild winax --runtime = electron --target = 4.0.4 (and higher) does not take this into account. Please fix it.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/durs/node-activex/issues/48, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEMMNIF2WPN5Q6I3QVQVOTPRBL5ZANCNFSM4HG4C2XA .

Den2016 commented 5 years ago

Yes, this is Node.js and Electron conflict. Winax not guilty )) sorry )