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

node-abi needs to be updated #667

Closed
c4ss opened this issue Jan 11, 2019 · 5 comments
Closed

node-abi needs to be updated #667

c4ss opened this issue Jan 11, 2019 · 5 comments

Comments

@c4ss
Copy link

c4ss commented Jan 11, 2019

Currently, running electron-forge start with electron version 4.x.x gives the error

An unhandled error has occurred inside Forge:
Could not detect abi for version 4.0.1 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 4.0.1 and runtime electron.  Updating "node-abi" might help solve this issue if it is a new release of electron
    at Object.getAbi (C:\node_modules\node-abi\index.js:30:9)

Is there much that needs to be changed before electron-forge supports electron 4.x.x?

Electron changelog

@malept malept changed the title Electron 4.x.x support node-abi needs to be updated Jan 11, 2019
@malept
Copy link
Member

malept commented Jan 11, 2019

You need to update node-abi to at least 2.5.1. This is a dependency of electron-rebuild:

https://github.com/electron/electron-rebuild/blob/e5dedf40b6a017729b9912bb550979ad8a69d5df/package.json#L38

Consult your package manager's documentation for how to upgrade transitive dependencies (without changing your package.json).

@malept malept closed this as completed Jan 11, 2019
@aap82
Copy link

aap82 commented Feb 4, 2019

For anyone else that runs into this problem and if you're using yarn: go into yarn.lock file, find entry for node-abi, delete it, then re-run yarn.

See yarnpkg/yarn#4986 (comment)

@luxlux
Copy link

luxlux commented May 18, 2019

BTW: deleting the entry for node-abi works the same way for users of npm and the package-lock.json file.

@ospfranco
Copy link

I did a fresh installation with current version and I'm getting an updated version of this error:

An unhandled error has occurred inside Forge:
Could not detect abi for version 8.0.0 and runtime electron.  Updating "node-abi" might help solve this issue if it is a new release of electron

modifying the yarn.lock file is not helping

@skorunka
Copy link

Had to delete node_modules and yarn.lock as well.

veado added a commit to thorchain/asgardex-electron that referenced this issue Sep 30, 2021
and runtime electron.  Updating "node-abi" might help solve this issue if it is a new release of electron

Fix:
"For anyone else that runs into this problem and if you're using yarn:
go into yarn.lock file, find entry for node-abi, delete it, then re-run
yarn." (@see
electron/forge#667 (comment))
gromxyz added a commit to thorchain/asgardex-electron that referenced this issue Sep 30, 2021
* Update simple dependencies

* Update typescript dependencies

* Update linter dependencies

* Update electron and remove deprecated remote module setting

* Update prettier config name

* Update @types/react

* Fix  Error: Could not detect abi for version 15.0.0

and runtime electron.  Updating "node-abi" might help solve this issue if it is a new release of electron

Fix:
"For anyone else that runs into this problem and if you're using yarn:
go into yarn.lock file, find entry for node-abi, delete it, then re-run
yarn." (@see
electron/forge#667 (comment))

* Update node version

Co-authored-by: Veado <veado@protonmail.com>
0xkobe pushed a commit to 0xkobe/asgardex-electron that referenced this issue Nov 6, 2023
* Update simple dependencies

* Update typescript dependencies

* Update linter dependencies

* Update electron and remove deprecated remote module setting

* Update prettier config name

* Update @types/react

* Fix  Error: Could not detect abi for version 15.0.0

and runtime electron.  Updating "node-abi" might help solve this issue if it is a new release of electron

Fix:
"For anyone else that runs into this problem and if you're using yarn:
go into yarn.lock file, find entry for node-abi, delete it, then re-run
yarn." (@see
electron/forge#667 (comment))

* Update node version

Co-authored-by: Veado <veado@protonmail.com>
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

6 participants