Could not detect abi for version 12.0.0 and runtime electron.
See original GitHub issueHi When I try to rebuild a module in newly released electron 12.0.0, it fails with an error:
An unhandled error occurred inside electron-rebuild
Could not detect abi for version 12.0.0 and runtime electron. Updating "node-abi" might help solve this issue if it is a new release of electron
Error: Could not detect abi for version 12.0.0 and runtime electron. Updating "node-abi" might help solve this issue if it is a new release of electron
at Object.getAbi (C:\dev\electron_test\node_modules\node-abi\index.js:30:9)
at new Rebuilder (C:\dev\electron_test\node_modules\electron-rebuild\lib\src\rebuild.js:102:48)
at rebuildWithOptions (C:\dev\electron_test\node_modules\electron-rebuild\lib\src\rebuild.js:253:23)
at Object.doRebuild [as rebuild] (C:\dev\electron_test\node_modules\electron-rebuild\lib\src\rebuild.js:276:16)
at C:\dev\electron_test\node_modules\electron-rebuild\lib\src\cli.js:119:33
how to reproduce:
npm init
npm i electron@12.0.0
npm i electron-rebuild
npm install windows-process-tree@0.2.4 --ignore-scripts
.\node_modules\.bin\electron-rebuild.cmd -f -w windows-process-tree
Throws an error
It is interesting, because older versions (e.g. 11.2.3), and electron v12 betas (the latest: 12.0.0-beta.31, released 20 hours ago), works:
npm init
npm i electron@12.0.0-beta.31
npm i electron-rebuild
npm install windows-process-tree@0.2.4 --ignore-scripts
.\node_modules\.bin\electron-rebuild.cmd -f -w windows-process-tree
os: windows 10 node: 14.16.0
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Could not detect abi for version 12.0.0 and runtime electron.
Hi When I try to rebuild a module in newly released electron 12.0.0, it fails with an error: An unhandled error occurred inside...
Read more >node-abi - npm
Get the Node ABI for a given target and runtime, and vice versa.. Latest version: 3.30.0, last published: 25 days ago. Start using...
Read more >Could not detect abi for version 14.0.0 and runtime electron
There is a problem with automatically releasing new versions of node-abi , which is why this error exists with electron-rebuild (and Electron ...
Read more >Electron-builder NPM
npm version downloads per month donate. A complete solution to package and build a ready for distribution Electron app for macOS, Windows and...
Read more >"node-abi" problem with MM v2.18.0 - MagicMirror Forum
I already did a fresh installation of MagicMirror and node.js but the ... Could not detect abi for version 16.0.5 and runtime electron....
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 FreeTop 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
Top GitHub Comments
@lstolcman, I found better solution from @jacobq, contributor of node-abi: https://github.com/lgeiger/node-abi/issues/102#issuecomment-831355695
I guess we have to wait till new release
I solved the issue by forcing install specific version of
node-abi
before rebuilding: