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 on any node version other than 13.14.0 #405

Open
dement6d opened this issue May 14, 2022 · 0 comments
Open

Doesn't work on any node version other than 13.14.0 #405

dement6d opened this issue May 14, 2022 · 0 comments

Comments

@dement6d
Copy link

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',
  ]
}
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

1 participant