Problem with Electron 11
See original GitHub issueI’ve just tested the new release (v1.6.4
) (https://github.com/tessel/node-usb/pull/407) and it breaks my app on Electron 11
(tested on macos and ubuntu 20).
However it works on Electron 10
and Electron 12 beta 1
🤔
Error message:
Uncaught Error: The module '.../node_modules/usb/build/Release/usb_bindings.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 87. This version of Node.js requires
NODE_MODULE_VERSION 85. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install
For reference: https://github.com/nodejs/node/blob/master/doc/abi_version_registry.json
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Unable to run with electron 11 · Issue #487 - GitHub
V14.7.0 Steps: Bump electron version to latest stable version: package.json npm install && npm start Expected result: App can start and show...
Read more >Electron 11.0.0
Beginning in Electron 11, Electron will be shipping separate ... Read and follow this issue for full plans and details for deprecation.
Read more >The problem with Electron | HackerNoon
Essentially, the issue comes down to the web stack being a poor fit for general-purpose GUI tasks.
Read more >Node-fetch not working with Electron 11, error resp.body.pipe ...
My download function doesn't seem to work anymore, and I can't understand the problem. Since my app is based on this boilerplate, I...
Read more >Microsoft is Finally Ditching Electron | by Faisal Khan
It would be called Teams 2.0 and might ship with Windows 11 in late 2022. The Electron Problem. There are tons of well-known...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
83
is Node 14, so that’s getting chosen based on your Node, rather than Electron version. That’s a different error than the85
/87
mismatch from your original post. I don’t really know howelectron-rebuild
is supposed to work, or what’s responsible for downloading the right prebuild when using electron.I confirmed that the
usb-v1.6.4-electron-v85-linux-x64.tar.gz
on the release actually contains a.node
file build for v87, so even if it were downloading the “right” file, you’d still get the wrong version. I opened https://github.com/prebuild/prebuild/issues/273 for that.I’ve had enough of this prebuild ABI madness and am not going to debug this further. Hopefully N-API (#399) will avoid all these problems.
Fixed in v1.6.5