Code Monkey home page Code Monkey logo

Comments (7)

jlsilva1994 avatar jlsilva1994 commented on July 20, 2024

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.

comod avatar comod commented on July 20, 2024

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.

comod avatar comod commented on July 20, 2024

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.

comod avatar comod commented on July 20, 2024

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.

Djiit avatar Djiit commented on July 20, 2024

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.

comod avatar comod commented on July 20, 2024

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.

Djiit avatar Djiit commented on July 20, 2024

Closing this for now :)

from iohook.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.