An open API service indexing awesome lists of open source software.

https://github.com/bitnom/electron-abi-fix

Shell script that fixes "Module version mismatch. Expected x, got x." errors when starting Electron apps.
https://github.com/bitnom/electron-abi-fix

Last synced: 5 months ago
JSON representation

Shell script that fixes "Module version mismatch. Expected x, got x." errors when starting Electron apps.

Awesome Lists containing this project

README

          

# electron-abi-fix
Fixes "Module version mismatch. Expected x, got x." errors. You usually encounter this error when running "npm start" from your Electron app's directory.

Installation: Drop "electron-abi-fix.sh" into your project's root directory where your package.json file is located.

Usage: sh electron-abi-fix.sh 49

or: sh electron-abi-fix.sh 49 1.3.4

The first example will figure out your Electron version for you by detecting it in your package.json. All you have to pass is the target ABI version. If you want you can pass the Electron version as the second parameter.

Note: I realize the actual fix is a 1 liner but it's long, not worth remembering, and annoying when you get this error message constantly. Now you don't have to worry much about it. In other words, I was bored.