You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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 innode_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:The text was updated successfully, but these errors were encountered: