MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Error found: Error: Module version mismatch. Expected 50, got 46.

    Scheduled Pinned Locked Moved Troubleshooting
    9 Posts 4 Posters 9.0k Views 4 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T Offline
      titusece
      last edited by yawns

      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.

      1 Reply Last reply Reply Quote 0
      • yawnsY Offline
        yawns Moderator
        last edited by

        Open a terminal, change into the MMM-Button folder and run this:
        npm rebuild --runtime=electron --target=1.3.4 --disturl=https://atom.io/download/atom-shell --abi=50

        1 Reply Last reply Reply Quote 0
        • T Offline
          titusece
          last edited by yawns

          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.*
          
          1 Reply Last reply Reply Quote 0
          • yawnsY Offline
            yawns Moderator
            last edited by yawns

            please run npm list, which electron version are you running?

            If it is 1.4 then please run

            npm rebuild --runtime=electron --target=1.4.0 --disturl=https://atom.io/download/atom-shell --build-from-source

            lolobyteL 1 Reply Last reply Reply Quote 1
            • T Offline
              titusece
              last edited by yawns

              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=50

              Thanks much. :)

              1 Reply Last reply Reply Quote 1
              • lolobyteL Offline
                lolobyte @yawns
                last edited by yawns

                @yawns
                My Problem is:
                Error: Module version mismatch. Expected 50, got 51.
                NOT: Expected 50, got 46

                Hello, i have another version of electron:

                pi@raspberrypi:~/MagicMirror $ npm list | grep electron
                ├─┬ electron-prebuilt@1.4.6
                │ ├─┬ electron-download@3.0.1
                npm ERR! extraneous: stylelint@7.5.0 /home/pi/MagicMirror/node_modules/stylelint
                

                What must be done here?

                npm rebuild --runtime=electron --target=1.4.6 --disturl=https://atom.io/download/atom-shell --abi=50

                Is that ok???

                1 Reply Last reply Reply Quote 1
                • T Offline
                  titusece
                  last edited by

                  Yes, you can do like that to fix the problem.

                  lolobyteL 1 Reply Last reply Reply Quote 0
                  • lolobyteL Offline
                    lolobyte @titusece
                    last edited by yawns

                    @titusece
                    Good morning (for me) my friend.

                    it is resolved, but… no video.
                    omx is running with a testfile.
                    I think i must change my troubleshooting topic. ;-)

                    Thank you

                    0|mm       |            ,"query_zone": "999",
                    0|mm       |    "alerts": [
                    0|mm       |    ]
                    0|mm       | }
                    0|mm       | button pressed
                    0|mm       | undefined
                    0|mm       | omxplayer still running. kill forced
                    0|mm       | button pressed
                    0|mm       | undefined
                    0|mm       | omxplayer still running. kill forced
                    0|mm       | button pressed
                    0|mm       | undefined
                    0|mm       | omxplayer still running. kill forced
                    
                    1 Reply Last reply Reply Quote 0
                    • foxF Offline
                      fox
                      last edited by

                      @yawns:
                      I did it with the named command, but no effect, can you help me please?

                      pi@magicpi:~/MagicMirror $ npm rebuild --runtime=electron --target=1.4.15 --disturl=https://atom.io/download/atom-shell --abi=50
                      
                      > electron@1.4.15 postinstall /home/pi/MagicMirror/node_modules/electron
                      > node install.js
                      
                      
                      > electron-chromedriver@1.7.1 install /home/pi/MagicMirror/node_modules/electron-chromedriver
                      > node ./download-chromedriver.js
                      
                      /home/pi/MagicMirror/node_modules/electron-chromedriver/download-chromedriver.js:16
                        if (error != null) throw error
                                           ^
                      
                      Error: Could not parse checksum file at line 1:
                          at data.trim.split.forEach.line (/home/pi/MagicMirror/node_modules/electron-chromedriver/node_modules/sumchecker/index.js:85:18)
                          at Array.forEach ()
                          at Promise (/home/pi/MagicMirror/node_modules/electron-chromedriver/node_modules/sumchecker/index.js:80:36)
                          at new Promise ()
                          at ChecksumValidator.parseChecksumFile (/home/pi/MagicMirror/node_modules/electron-chromedriver/node_modules/sumchecker/index.js:76:12)
                          at 
                      npm ERR! code ELIFECYCLE
                      npm ERR! errno 1
                      npm ERR! electron-chromedriver@1.7.1 install: `node ./download-chromedriver.js`
                      npm ERR! Exit status 1
                      npm ERR!
                      npm ERR! Failed at the electron-chromedriver@1.7.1 install script.
                      npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
                      
                      npm ERR! A complete log of this run can be found in:
                      
                      

                      Reason-Link

                      Issues With MMM-WatchDog known?

                      https://forum.magicmirror.builders/post/29827

                      Useful for PIR-Sensor: https://forum.magicmirror.builders/post/21299

                      1 Reply Last reply Reply Quote 0

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better 💗

                      Register Login
                      • 1 / 1
                      • First post
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy