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

Doesn't work in Node v10.15.3 #303

Closed
qbakk opened this issue Apr 8, 2019 · 1 comment
Closed

Doesn't work in Node v10.15.3 #303

qbakk opened this issue Apr 8, 2019 · 1 comment

Comments

@qbakk
Copy link

qbakk commented Apr 8, 2019

Hello I try use node-hid@0.7.7 for rfid read, but I have a problem with start application in electronjs.

My software version:
node.js: v10.15.3
npm: 6.4.1
node-hid: 0.7.7
electronjs: 4.1.4
Windows 10 build in Visual Studio 2019 or Visual Studio Code - the same problem

when I start application console show error:

Uncaught Error: The module '\\?\C:\Users\Adams\source\repos\Electron.Test.ConnectToMSSQL\Electron.Test.ConnectToMSSQL\node_modules\node-hid\build\Release\HID.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 64. This version of Node.js requires NODE_MODULE_VERSION 69. Please try re-compiling or re-installing the module (for instance, using npm rebuildornpm install). at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:160:31) at Object.Module._extensions..node (internal/modules/cjs/loader.js:722) at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:160:31) at Module.load (internal/modules/cjs/loader.js:602) at tryModuleLoad (internal/modules/cjs/loader.js:541) at Function.Module._load (internal/modules/cjs/loader.js:533) at Module.require (internal/modules/cjs/loader.js:640) at require (internal/modules/cjs/helpers.js:20) at bindings (C:\Users\Adams\source\repos\Electron.Test.ConnectToMSSQL\Electron.Test.ConnectToMSSQL\node_modules\bindings\bindings.js:112) at loadBinding (C:\Users\Adams\source\repos\Electron.Test.ConnectToMSSQL\Electron.Test.ConnectToMSSQL\node_modules\node-hid\nodehid.js:16)

The similar problem it is described in #209 but all advice they did not help me

I try create application which looks like this https://github.com/herrkris/node-rfid

@wazho
Copy link

wazho commented Apr 19, 2019

Downgrade your Electron version to v4.0.3.

Because Electron's NODE_MODULE_VERSION was updated to 69 in Electron v4.0.4.

@todbot todbot closed this as completed May 1, 2019
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