iohook
iohook copied to clipboard
Fails to install using npm v7.19.0 and node v16.4.0
Expected Behavior
Using the command listed on the main page, I would expect the package to be installed. "npm install iohook --save"
Current Behavior
The following errors are shown:
npm WARN deprecated [email protected]: this library is no longer supported npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142 npm ERR! code 1 npm ERR! path C:\Dev\Projects\electron\KeyTest\node_modules\iohook npm ERR! command failed npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node install.js npm ERR! Downloading prebuild for platform: iohook-v0.9.3-node-v93-win32-x64 Downloading prebuild.tar.gz npm ERR! Error: GET https://github.com/wilix-team/iohook/releases/download/v0.9.3/iohook-v0.9.3-node-v93-win32-x64.tar.gz returned 404 npm ERR! Prebuild for current platform (iohook-v0.9.3-node-v93-win32-x64) not found! npm ERR! Try to build for your platform manually: npm ERR! # cd node_modules/iohook; npm ERR! # npm run build npm ERR! npm ERR! C:\Dev\Projects\electron\KeyTest\node_modules\iohook\install.js:16 npm ERR! throw err; npm ERR! ^ npm ERR! npm ERR! [Error: ENOENT: no such file or directory, open 'C:\Users\mikev\AppData\Local\Temp\prebuild.tar.gz'] { npm ERR! errno: -4058, npm ERR! code: 'ENOENT', npm ERR! syscall: 'open', npm ERR! path: 'C:\Users\mikev\AppData\Local\Temp\prebuild.tar.gz' npm ERR! }
Possible Solution
Unknown,
Steps to Reproduce (for bugs)
- Run this: "npm install iohook --save"
Context
I cannot even try this library.
Your Environment
- Windows 10
- Node v16.4.0
- NPM v7.19.0
- IOHook Version:
- Environment name and version (e.g. Chrome 39, node.js 5.4, electron 11.2):
- Operating System and version (desktop or mobile):
- Optional Link to your project:
In the iohook entry in the package.json, try changing the node target to 72.
You're using Node 16 which has ABI 93, currently iohook isn't prebuilt for that version which is why you get the issue. This is in the pipeline.
is there a timeline for node v16 support?
Any updates?