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.
Try to update node-abi:
npm install node-abi@latest
The newer version of node-abi includes support for Electron 37.1.0.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With