Comments (7)
you could try this in your git bash:
npm install --global --production windows-build-tools
this command will install and configure for you all the tools that you need to build your electron application on windows. that command take a while, depending on your internet connection.
i also was having problems with instalation on windows, but that solved my problem.
from iohook.
weirdly I had tried that before, but now it worked. but now I get this error:
CMake Error at CMakeLists.txt:19 (add_subdirectory):
add_subdirectory given source "libuiohook" which is not an existing
directory.
from iohook.
ive deleted iohook and start over:
npm install iohook --save
C:\xampp\htdocs\electron-test\node_modules\iohook\install.js:14
throw err;
^
Prebuild for current platform (iohook-v0.1.13-node-v51-linux-ia32) not found!
[ ......] - install: info lifecycle [email protected]~install: Failed to
npm WARN [email protected] No repository field.
npm WARN [email protected] No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fse
vents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@
1.1.3: 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 log
ging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\timo\AppData\Roaming\npm-cache_logs\2018-03-03T09_44_18_5
00Z-debug.log
...ignore the error and tried the following...
cd node_modules/iohook
npm run build
OKAY take it away electron-builder
• electron-builder version=19.56.2
• loaded configuration file=package.json ("build" field)
• writing effective config file=build\electron-builder.yaml
Error: Unresolved node modules: iohook
at C:\xampp\htdocs\electron-test\node_modules\electron-builder-lib\src\util\packageDependencies.ts:109:19
From previous event:
at Collector.resolveUnresolvedHoisted (C:\xampp\htdocs\electron-test\node_modules\electron-builder-lib\out\util\packag
eDependencies.js:206:11)
... under which node in package.josn do i need to put exactly the
"iohook": {
"targets": [
"node-51",
"electron-53"
],
"platforms": [
"win32",
"darwin",
"linux"
],
"arches": [
"x64",
"ia32"
]
}
in root-node? in the build-node?
from iohook.
Now Im getting:
CMake Error: File C:/xampp/htdocs/electron-test/node_modules/iohook/libuiohook/include/config.h.in does not exist.
CMake Error at libuiohook/CMakeLists.txt:97 (configure_file):
configure_file Problem configuring file
from iohook.
Hi there,
This is related to : #43
Edit your "root" package.json and reinstall your dependencis INCLUDING electron to ensure you have the correct electron version (53 = 1.7.X if I remember correctly). You can avoid the error about the linux-ia32 by dropping the linux line as in :
"iohook": {
"targets": [
"node-51",
"electron-53"
],
"platforms": [
"win32",
"darwin",
],
"arches": [
"x64",
"ia32"
]
}
I guess you are using electron+vuejs ? I'm on the same platform. Tell me if it fixes anything.
from iohook.
It is working now!
fixate electron verison to
"electron": "1.6.0",
and copied prebuild hard from here https://github.com/vespakoen/iohook/releases/tag/v0.1.3
Thank you!
..and yes, you guessing right :-)
from iohook.
Closing this for now :)
from iohook.
Related Issues (20)
- how can import iohook into my web-application to get keyboard or mouse click event globally? HOT 1
- Is there a possibility to interrupt a keydown event?
- Update Electron Support HOT 1
- Cannot find module iohook.node HOT 2
- (node:72347) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 keydown listeners added to [IOHook]. Use emitter.setMaxListeners() to increase limit
- Unable to install iohook because of npm errors HOT 4
- How can check iohook is started or stopped
- iohook build different node js version HOT 9
- Update dist-url for build.js script
- Building for node v18.13.0 and Electron 22.0.0 HOT 3
- Release to github fails when manual build.
- Version 0.9.0 is not build for Windows 11 HOT 1
- Uncaught Exception: Error: Cannot find module '/home/logicrays/Documents/practice project/Learn electronjs/web-tracker-electron-app/node_modules/iohook/builds/electron-v113-linux-x64/build/Release/iohook.node' HOT 3
- Non-existing version of iohook, v0.9.3-node-v111-win32-x64 HOT 3
- Build a version for Electron v24.4.0 HOT 4
- Error to install over mac and nodejs v14 & v15 HOT 3
- iohook.node is not a valid Win32 application HOT 3
- Couldn't install iohook in my electron app HOT 3
- when manually building on windows, node-gyp generated .dll, but not .node HOT 19
- Error while installing HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iohook.