Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

electron-builder building issue "can't detect abi"

I was trying to use electron-builder to build my app, and I get an error. It worked a month ago and I didn't change anything in the package.json file, but now it doesn't work. The app does work when I open it using npm start, but I can't build it now for some reason.

I was trying to use this command in administrator cmd npx electron-builder --dir. A month ago it did work with no issues, and now I get an error after the "preparing" stage.

The error:

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

I tried deleting node modules and running npm install, but it didn't help. I also tried npm audit fix, which didn't help. I also tried downgrading the version of Electron, and it also didn't help.

like image 958
Rick Sanchez Avatar asked Dec 18 '25 15:12

Rick Sanchez


1 Answers

Try to update node-abi:

npm install node-abi@latest

The newer version of node-abi includes support for Electron 37.1.0.

like image 79
Khaled Ayed -ngCode- Avatar answered Dec 21 '25 05:12

Khaled Ayed -ngCode-