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.
- Host: GitHub
- URL: https://github.com/bitnom/electron-abi-fix
- Owner: bitnom
- License: mit
- Created: 2016-08-31T07:49:32.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-08-31T09:31:10.000Z (almost 10 years ago)
- Last Synced: 2025-06-28T15:43:39.455Z (12 months ago)
- Language: Shell
- Homepage:
- Size: 12.7 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.