Yes, you can do like that to fix the problem.
Read the statement by Michael Teeuw here.
Posts
- 
RE: Error found: Error: Module version mismatch. Expected 50, got 46.
- 
RE: Error found: Error: Module version mismatch. Expected 50, got 46.Awesome, nice hint. pi@raspberrypi:~/MagicMirror $ pi@raspberrypi:~/MagicMirror $ npm list | grep electron ├─┬ electron-prebuilt@1.4.5 │ ├─┬ electron-download@3.0.1 npm ERR! peer dep missing: grunt@~0.4.0, required by grunt-yamllint@0.2.0 pi@raspberrypi:~/MagicMirror $I did this and no more problem now. npm rebuild --runtime=electron --target=1.4.5 --disturl=https://atom.io/download/atom-shell --abi=50Thanks much. :) 
- 
RE: Error found: Error: Module version mismatch. Expected 50, got 46.Thanks. 
 Now, I’m getting the below different version error.*pi@raspberrypi:~/MagicMirror $ npm start > magicmirror@2.0.0 start /home/pi/MagicMirror > electron js/electron.js Loading config ... Loading module helpers ... WARNING! Could not load config file. Starting with default configuration. **Error found: Error: Module version mismatch. Expected 50, got 49.** Loading module helpers ... App threw an error during load **Error: Module version mismatch. Expected 50, got 49.** at Error (native) at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:178:20) at Object.Module._extensions..node (module.js:583:18) at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:178:20) 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 bindings (/home/pi/MagicMirror/modules/MMM-Button/node_modules/bindings/bindings.js:76:44) Whoops! There was an uncaught exception... **Error: Module version mismatch. Expected 50, got 49.** at Error (native) at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:178:20) at Object.Module._extensions..node (module.js:583:18) at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:178:20) 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 bindings (/home/pi/MagicMirror/modules/MMM-Button/node_modules/bindings/bindings.js:76:44) MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues Launching application.*
- 
Error found: Error: Module version mismatch. Expected 50, got 46.Dear All, https://github.com/PtrBld/MMM-Button I am getting the When I add & use the MMM-Button module into my magic mirror, *pi@raspberrypi:~/MagicMirror $ pi@raspberrypi:~/MagicMirror $ npm start > magicmirror@2.0.0 start /home/pi/MagicMirror > electron js/electron.js Loading config ... Loading module helpers ... WARNING! Could not load config file. Starting with default configuration. Error found: Error: Module version mismatch. Expected 50, got 46. Loading module helpers ... App threw an error during load Error: Module version mismatch. Expected 50, got 46. at Error (native) at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:178:20) at Object.Module._extensions..node (module.js:583:18) at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:178:20) 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 bindings (/home/pi/MagicMirror/modules/MMM-Button/node_modules/bindings/bindings.js:76:44) Whoops! There was an uncaught exception... Error: Module version mismatch. Expected 50, got 46. at Error (native) at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:178:20) at Object.Module._extensions..node (module.js:583:18) at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:178:20) 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 bindings (/home/pi/MagicMirror/modules/MMM-Button/node_modules/bindings/bindings.js:76:44) MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues Launching application.*{ module: 'MMM-Button', config: { buttonPIN: 17, clickDelay: 500, } },What could be the problem and how to fix this issue ? 
 Any one please help me on this.Regards, 
 Titus S.
- 
RE: Black screen for copy of hellowold moduleI found the problem. 
 Initially I named module as “Titus” and have javscript as “titus.js”.I renamed like below and it worked. 
 “titus.js” to “Titus.js”{ module: 'Titus', position: 'middle_center', header: 'Titus module', config: { text: 'Glory to God, Jesus and Holyspirit, all the time' } },Thank you. Regards, 
 Titus S.
- 
RE: Black screen for copy of hellowold moduleYes, I did like that only. Changed to like below. 
 javascript Module.register(“Titus”,{Anything I want to do ? 
- 
Black screen for copy of hellowold moduleHello, 
 I have tried to create a new module in MM, for that I have copied helloworld module from “modules/defauls/helloworld” to “modules/Titus”,I just renamed to ‘Titus’ as a module. Then I changed the config.js file for a new Titus module. I am getting black screen now for the Titus module, but just work fine for helloworld. 
 Why ?, any dependencies ?
 Can any one please help me on this ?I’m very new to this (MMM) //Worked /* { module: 'helloworld', position: 'middle_center', header: 'helloworld module', config: { text: 'I'm helloworld module' } // closes config }, // closes module helloworld */ //Not worked { module: 'Titus', position: 'middle_center', header: 'Titus module', config: { text: 'I'm Titus module' } },Regards, 
 Titus S.