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

Couldn't install iohook in my electron app #441

Open
sachinsrinivas12 opened this issue Jan 22, 2024 · 3 comments
Open

Couldn't install iohook in my electron app #441

sachinsrinivas12 opened this issue Jan 22, 2024 · 3 comments

Comments

@sachinsrinivas12
Copy link

npm WARN cleanup Failed to remove some directories [
npm WARN cleanup [
npm WARN cleanup 'C:\appDev\catalyst-electronjs-agent\node_modules\app-builder-lib',
npm WARN cleanup [Error: EPERM: operation not permitted, rmdir 'C:\appDev\catalyst-electronjs-agent\node_modules\app-builder-lib\templates'] {
npm WARN cleanup errno: -4048,
npm WARN cleanup code: 'EPERM',
npm WARN cleanup syscall: 'rmdir',
npm WARN cleanup path: 'C:\appDev\catalyst-electronjs-agent\node_modules\app-builder-lib\templates'
npm WARN cleanup }
npm WARN cleanup ],
npm WARN cleanup [
npm WARN cleanup 'C:\appDev\catalyst-electronjs-agent\node_modules\getmac',
npm WARN cleanup [Error: EPERM: operation not permitted, rmdir 'C:\appDev\catalyst-electronjs-agent\node_modules\getmac\node_modules@types\node\ts4.8\dns'] {
npm WARN cleanup errno: -4048,
npm WARN cleanup code: 'EPERM',
npm WARN cleanup syscall: 'rmdir',
npm WARN cleanup path: 'C:\appDev\catalyst-electronjs-agent\node_modules\getmac\node_modules\@types\node\ts4.8\dns'
npm WARN cleanup }
npm WARN cleanup ],
npm WARN cleanup [
npm WARN cleanup 'C:\appDev\catalyst-electronjs-agent\node_modules\axios',
npm WARN cleanup [Error: EPERM: operation not permitted, rmdir 'C:\appDev\catalyst-electronjs-agent\node_modules\axios'] {
npm WARN cleanup errno: -4048,
npm WARN cleanup code: 'EPERM',
npm WARN cleanup syscall: 'rmdir',
npm WARN cleanup path: 'C:\appDev\catalyst-electronjs-agent\node_modules\axios'
npm WARN cleanup }
npm WARN cleanup ]
npm WARN cleanup ]
npm ERR! code 1
npm ERR! path C:\appDev\catalyst-electronjs-agent\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-v120-win32-x64
npm ERR! Downloading prebuild.tar.gz
Downloading prebuild.tar.gz
npm ERR! Error: GET https://github.com/wilix-team/iohook/releases/download/v0.9.3/iohook-v0.9.3-node-v120-win32-x64.tar.gz returned 404
npm ERR! (node:26996) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
npm ERR! (Use node --trace-deprecation ... to show where the warning was created)
npm ERR! Prebuild for current platform (iohook-v0.9.3-node-v120-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:\appDev\catalyst-electronjs-agent\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\SACHIN1.SRI\AppData\Local\Temp\prebuild.tar.gz'] {
npm ERR! errno: -4058,
npm ERR! code: 'ENOENT',
npm ERR! syscall: 'open',
npm ERR! path: 'C:\Users\SACHIN
1.SRI\AppData\Local\Temp\prebuild.tar.gz'
npm ERR! }
npm ERR!
npm ERR! Node.js v21.4.0

npm ERR! A complete log of this run can be found in: C:\Users\sachin.srinivas\AppData\Local\npm-cache_logs\2024-01-22T11_47_59_629Z-debug-0.log

@harshprajapati4225
Copy link

you need to add some config in pakage.json in order to install.

@thamizh-qwerty
Copy link

thamizh-qwerty commented Jan 30, 2024

npm ERR! Error: GET https://github.com/wilix-team/iohook/releases/download/v0.9.3/iohook-v0.9.3-node-v120-win32-x64.tar.gz returned 404

this line from your log means there is no prebuilt for this specific version. you need to build them manually. These are the available prebuilt versions. And, these is how we should generate manual build.

iohook's nodegyp@latest configuration works fine on linux, not on windows. check this.
. also check the releases of this repo.

@WilixLead @lacymorrow there is lot of 'could not install' issues. can we have some explanation regarding this in readme.md.

@lacymorrow
Copy link
Collaborator

I'd be up to merge any PR's to improve the documentation or add more prebuilt binaries!

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

4 participants