Closed bvobart closed 6 years ago
This is a systematical issue relating to electron, node, and native modules. prior issues For the successful build on the releases I had to manually set the node version to match the electron core v8 version and run the build. I have tried several variations of electron rebuild without success, even resetting the entire env with electron's versions still builds a package depending on a different version of node v8. I will push a commit shortly that may fix the issue as it updates dependencies and partially alters the build command.
Try now with latest on master
Thanks for your quick response! I figured that it would indeed be an issue with the dependency on an older version of Electron, With your latest version on the master (v0.2.1), the app starts up correctly and works as it should. I'll update SUPPORTED.md
with my information later tonight. Thanks!
Issue
Really nice and simple app, I love it. It works perfectly when I install using the prebuilt binaries, but when installing from source, then the app launches with just a blank window, only showing the correct background colour. When I open the developer console, it shows a NODE_MODULE_VERSION mismatch of a node in
node-hid
:I've tried updating the
msi-keyboard
, and Electron dependencies to their latest versions in the package.json, then removing thenode_modules
anddist
folders, and then reinstalling usingnpm install
. This still resulted in the same error.As suggested here, I've also tried
npm rebuild node-hid --force
to no avail. Addingelectron-rebuild --force
to the package.json as a script and then executing that does not solve the problem either...And as suggested in #33 running
npm run build:linux
also didn't work, still resulting in the same error. This command actually had to be run with sudo, as thedist
directory is owned by root instead of by my account. Running without sudo gave a permissions error.EDIT: As a small note, I've just tried cloning your
msi-keyboard
repository,npm install
ing it and then runningsudo node examples/color.js
. This runs perfectly fine.System versions:
As for the the libusb version, that is what
dpkg -l | grep libusb-dev
returned.