rebuild icon indicating copy to clipboard operation
rebuild copied to clipboard

Could not detect abi for version 20.1.0 and runtime electron

Open rortan134 opened this issue 2 years ago • 13 comments

Got this error while rebuilding

Error: Could not detect abi for version 20.1.0 and runtime electron.  Updating "node-abi" might help solve this issue if it is a new release of electron

Failed at:

C:\Program Files\nodejs\node.exe process failed ERR_ELECTRON_BUILDER_CANNOT_EXECUTE
An unhandled error occurred inside electron-rebuild
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c npm run electron-rebuild && npm run link-modules

rortan134 avatar Aug 31 '22 00:08 rortan134

Same issue

kbourro avatar Sep 05 '22 13:09 kbourro

I run npm install [email protected] to force node-abi version to latest , and then build succeed

THLIVSQAZ avatar Sep 06 '22 07:09 THLIVSQAZ

same problem

Aaqu avatar Sep 09 '22 07:09 Aaqu

same problem

I found the solution, uninstall and again install electron-rebuild in my project, it works!

Aaqu avatar Sep 09 '22 08:09 Aaqu

Adding the following to package.json fixed my issue. "overrides": { "electron-rebuild": { "node-abi": "3.24.0" } },

kbourro avatar Sep 09 '22 08:09 kbourro

Installing the Lib saved my day :)

DzCorps avatar Jun 08 '23 10:06 DzCorps

⨯ Could not detect abi for version 25.0.1 and runtime electron. ⨯ Could not detect abi for version 25.1.0 and runtime electron.

Krivega avatar Jun 09 '23 11:06 Krivega

@Krivega Same problem for me

tobiasmuecksch avatar Jun 14 '23 20:06 tobiasmuecksch

same here

edit: electron >23 fails, 22 ok

sl1pkn07 avatar Jun 19 '23 05:06 sl1pkn07

Setting the resolution override in package.json fixed this issue for me with electron 26.1.0 and electron-forge 6.4.1:

"resolutions": {
    "node-abi": "^3.47.0"
  },

mbeissinger avatar Aug 27 '23 05:08 mbeissinger

I resolved this issue by adding "overrides" in package.json, make sure there is not older node-abi are defined in package-lock.json. Finally, added following overrides to resolve all Error: Could not detect abi for version 26.4.0 and runtime electron

"overrides": {
"prebuild-install": {
"node-abi": "3.51.0"
},
"prebuild": {
"node-abi": "3.51.0"
},
"robotjs": {
"node-abi": "3.51.0"
}
},

beyondmeteor avatar Oct 31 '23 13:10 beyondmeteor

update node-abi work for me yarn upgrade node-abi or npm update node-abi

yagoubigithub avatar Jun 12 '24 07:06 yagoubigithub

i thinks needs document what version of node-abi is compatible with what version of node

sl1pkn07 avatar Jun 12 '24 14:06 sl1pkn07