iohook icon indicating copy to clipboard operation
iohook copied to clipboard

Fails to install using npm v7.19.0 and node v16.4.0

Open mviens opened this issue 3 years ago • 4 comments

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)

  1. Run this: "npm install iohook --save"

Context

I cannot even try this library.

Your Environment

  1. Windows 10
  2. Node v16.4.0
  3. 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:

mviens avatar Jun 30 '21 01:06 mviens

In the iohook entry in the package.json, try changing the node target to 72.

Grayseon avatar Jul 09 '21 16:07 Grayseon

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.

ash0x0 avatar Jul 09 '21 20:07 ash0x0

is there a timeline for node v16 support?

stevenpollack avatar Sep 28 '21 02:09 stevenpollack

Any updates?

cangSDARM avatar Jan 30 '22 03:01 cangSDARM