Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not detect abi for version 20.1.0 and runtime electron #1031

Open
rortan134 opened this issue Aug 31, 2022 · 13 comments
Open

Could not detect abi for version 20.1.0 and runtime electron #1031

rortan134 opened this issue Aug 31, 2022 · 13 comments

Comments

@rortan134
Copy link

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
@kbourro
Copy link

kbourro commented Sep 5, 2022

Same issue

@THLIVSQAZ
Copy link

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

@Aaqu
Copy link

Aaqu commented Sep 9, 2022

same problem

@Aaqu
Copy link

Aaqu commented Sep 9, 2022

same problem

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

@kbourro
Copy link

kbourro commented Sep 9, 2022

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

@DzCorps
Copy link

DzCorps commented Jun 8, 2023

Installing the Lib saved my day :)

@Krivega
Copy link

Krivega commented Jun 9, 2023

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

@tobiasmuecksch
Copy link

@Krivega Same problem for me

@sl1pkn07
Copy link

sl1pkn07 commented Jun 19, 2023

same here

edit: electron >23 fails, 22 ok

@mbeissinger
Copy link

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"
  },

@beyondmeteor
Copy link

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"
}
},

@yagoubigithub
Copy link

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

@sl1pkn07
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests