A
A
Alexander Kusak2019-09-09 21:12:46
npm
Alexander Kusak, 2019-09-09 21:12:46

How to install npm module iohook?

Can't install iohook module .

When writing the npm install command, iohook produces the following logs:

> [email protected] install D:\js\electron\program\node_modules\iohook
> node install.js

node 59 win32 x64
Downloading prebuild for platform: iohook-v0.6.1-node-v59-win32-x64
Downloading prebuild.tar.gz
[============================================>] 100.0% of 29.9 kB (29.9 kB/s)
Downloading prebuild.tar.gz
[============================================>] 100.0% of 25.37 kB (25.37 kB/s)
Downloading prebuild.tar.gz
[============================================>] 100.0% of 25.54 kB (25.54 kB/s)
Downloading prebuild.tar.gz
Error: GET https://github.com/wilix-team/iohook/releases/download/v0.6.1/iohook-v0.6.1-electron-v54-win32-x64.tar.gz returned 404
Prebuild for current platform (iohook-v0.6.1-electron-v54-win32-x64) not found!
Try to compile for your platform:
# cd node_modules/iohook;
# npm run compile


D:\js\electron\program\node_modules\iohook\install.js:15
  throw err;
  ^
Prebuild for current platform (iohook-v0.6.1-electron-v54-win32-x64) not found!
npm WARN [email protected] requires a peer of @babel/[email protected]^7.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\seda1\AppData\Roaming\npm-cache\_logs\2019-09-09T18_08_38_404Z-debug.log

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Robur, 2019-09-10
@McFree

Try to compile for your platform:
# cd node_modules/iohook;
# npm run compile

have you tried?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question