Issue:
Rebuilding keytar gives me a version mismatch.
App threw an error during load
Error: Module version mismatch. Expected 50, got 47.
at Error (native)
at process.module.(anonymous function) as dlopen
at Object.Module._extensions..node (module.js:583:18)
at Object.module.(anonymous function) as .node
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
at Object.
Steps to reproduce:
git clone https://github.com/hokein/electron-sample-apps.git samples && cd samples/helloworld
add "const keytar = require('keytar');" to main.js
npm install --save keytar && npm install --save-dev electron-rebuild
./node_modules/.bin/electron-rebuild
electron .
Problem solved by specifying the target version.
./node_modules/.bin/electron-rebuild --version=1.4.3
Where version is the electron version.
Most helpful comment
Problem solved by specifying the target version.
./node_modules/.bin/electron-rebuild --version=1.4.3
Where version is the electron version.