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

iohook.node is not a valid Win32 application #402

Closed
dement6d opened this issue May 9, 2022 · 2 comments
Closed

iohook.node is not a valid Win32 application #402

dement6d opened this issue May 9, 2022 · 2 comments

Comments

@dement6d
Copy link

dement6d commented May 9, 2022

So i have an application which uses iohook but iohook from the npm doesnt work on node versions newer than v13 and i wanted to switch to node v16 so i had to build iohook myself.

I cloned iohook into my node_modules folder and built iohook with MSVS 2019 successfully and now have node-v93-win32-x64 with iohook.node and uiohook.so in node_modules/iohook/builds/

Here's a download of my builds and build_def folders in case that may be helpful: iohook.zip

But when i run node index.js i get this error:

node:internal/modules/cjs/loader:1189
  return process.dlopen(module, path.toNamespacedPath(filename));
                 ^

Error: \\?\C:\Users\Cuff\Desktop\keeloger\node_modules\iohook\builds\node-v93-win32-x64\build\Release\iohook.node is not a valid Win32 application.
\\?\C:\Users\Cuff\Desktop\keeloger\node_modules\iohook\builds\node-v93-win32-x64\build\Release\iohook.node
    at Object.Module._extensions..node (node:internal/modules/cjs/loader:1189:18)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (C:\Users\Cuff\Desktop\keeloger\node_modules\iohook\index.js:24:21)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12) {
  code: 'ERR_DLOPEN_FAILED'
}
  • IOHook Version: 0.9.3
  • Node version: 16.15.0
  • NPM version: 8.5.5
  • Operating System: Windows 10 x64
@lacymorrow
Copy link
Collaborator

You are likely not specifying the correct ABI version for the node/electron pairs

@lacymorrow
Copy link
Collaborator

Duplicate #348

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

2 participants