iohook icon indicating copy to clipboard operation
iohook copied to clipboard

Doesn't work on any node version other than 13.14.0

Open dement6d opened this issue 3 years ago • 0 comments
trafficstars

I cant get iohook to work on any node version other than 13.14.0?? On some 14.x.x verisons i could get it to run but not past the const ioHook = require('iohook'); line, it prints

refresh_locale_list [476]: GetKeyboardLayoutList(0, NULL) found 2 layouts.
refresh_locale_list [493]: Received 2 locales.
load_input_helper [866]: refresh_locale_list() found 2 locale(s).

and instantly closes without any error message. Meanwhile on v16 i get errors like "not a valid Win32 app" or on v12 i get this

internal/modules/cjs/loader.js:965
  throw err;
  ^

Require stack:
- C:\Users\Cuff\Desktop\program\node_modules\iohook\index.js
- C:\Users\Cuff\Desktop\program\index.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:962:15)
    at Function.Module._load (internal/modules/cjs/loader.js:838:27)
    at Module.require (internal/modules/cjs/loader.js:1022:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (C:\Users\Cuff\Desktop\program\node_modules\iohook\index.js:24:21)
    at Module._compile (internal/modules/cjs/loader.js:1118:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1138:10)
    at Module.load (internal/modules/cjs/loader.js:982:32)
    at Function.Module._load (internal/modules/cjs/loader.js:875:14)
    at Module.require (internal/modules/cjs/loader.js:1022:19) {
  code: 'MODULE_NOT_FOUND',
  ]
}

dement6d avatar May 14 '22 04:05 dement6d