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.

    Update Error of v.2.2.0 :(

    Scheduled Pinned Locked Moved Troubleshooting
    21 Posts 11 Posters 24.1k Views 8 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.
    • F
      fox
      last edited by fox

      And again, the next Magic Mirror update failed at me and broke my MM completely :(
      My fault, i “accidently” clicked on the update button in the MMM-remote…
      Bild Text

      And with
      npm start dev:

      > magicmirror@2.2.2 start /home/pi/MagicMirror
      > sh run-start.sh "dev"
      
      /home/pi/MagicMirror/node_modules/electron/index.js:9
        throw new Error('Electron failed to install correctly, please delete node_modules/' + path.basename(__dirname) + ' and try installing again')
        ^
      
      Error: Electron failed to install correctly, please delete node_modules/electron and try installing again
          at Object.<anonymous> (/home/pi/MagicMirror/node_modules/electron/index.js:9:9)
          at Module._compile (module.js:571:32)
          at Object.Module._extensions..js (module.js:580:10)
          at Module.load (module.js:488:32)
          at tryModuleLoad (module.js:447:12)
          at Function.Module._load (module.js:439:3)
          at Module.require (module.js:498:17)
          at require (internal/module.js:20:19)
          at Object.<anonymous> (/home/pi/MagicMirror/node_modules/electron/cli.js:3:16)
          at Module._compile (module.js:571:32)
      
      npm ERR! Linux 4.9.56-v7+
      npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start" "dev"
      npm ERR! node v7.10.1
      npm ERR! npm  v4.2.0
      npm ERR! code ELIFECYCLE
      npm ERR! errno 1
      npm ERR! magicmirror@2.2.2 start: `sh run-start.sh "dev"`
      npm ERR! Exit status 1
      npm ERR!
      npm ERR! Failed at the magicmirror@2.2.2 start script 'sh run-start.sh "dev"'.
      npm ERR! Make sure you have the latest version of node.js and npm installed.
      npm ERR! If you do, this is most likely a problem with the magicmirror package,
      npm ERR! not with npm itself.
      npm ERR! Tell the author that this fails on your system:
      npm ERR!     sh run-start.sh "dev"
      npm ERR! You can get information on how to open an issue for this project with:
      npm ERR!     npm bugs magicmirror
      npm ERR! Or if that isn't available, you can get their info via:
      npm ERR!     npm owner ls magicmirror
      npm ERR! There is likely additional logging output above.
      
      

      Issues With MMM-WatchDog known?

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

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

      B 1 Reply Last reply
      Reply Quote 0
      • B
        bhepler Module Developer @fox
        last edited by bhepler

        @fox Did you try reinstalling electron via the instructions given? ie, delete /home/pi/MagicMirror/node_modules/electron and reinstalling?

        This should be close:

        cd /home/pi/MagicMirror/node_modules
        sudo rm -rf electron
        cd ..
        npm install electron@1.4.15
        

        After that, I suspect a npm install and then npm start.

        F O F 3 Replies Last reply
        Reply Quote 1
        • F
          fox @bhepler
          last edited by fox

          @bhepler
          thank you for your reply.
          Everything worked until the last command.
          Then i got

          pi@magicpi:~/MagicMirror $ npm build && npm start
          
          > magicmirror@2.2.2 start /home/pi/MagicMirror
          > sh run-start.sh
          
          Starting MagicMirror: v2.2.2
          Loading config ...
          Loading module helpers ...
          Initializing new module helper ...
          Module helper loaded: MMM-cryptocurrency
          Initializing new module helper ...
          Module helper loaded: MMM-Wunderlist
          No helper found for module: clock.
          Initializing new module helper ...
          Module helper loaded: MMM-ModuleScheduler
          WARNING! Could not load config file. Starting with default configuration. Error                                                                                                                      found: Error: Module version mismatch. Expected 50, got 54.
          Loading module helpers ...
          Initializing new module helper ...
          Module helper loaded: MMM-cryptocurrency
          Initializing new module helper ...
          Module helper loaded: MMM-Wunderlist
          No helper found for module: clock.
          Initializing new module helper ...
          Module helper loaded: MMM-ModuleScheduler
          App threw an error during load
          Error: Module version mismatch. Expected 50, got 54.
              at Error (native)
              at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:173:20)
              at Object.Module._extensions..node (module.js:583:18)
              at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:173: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-PIR-Sensor/node_modules/bindin                                                                                                                     gs/bindings.js:76:44)
          Whoops! There was an uncaught exception...
          Error: Module version mismatch. Expected 50, got 54.
              at Error (native)
              at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:173:20)
              at Object.Module._extensions..node (module.js:583:18)
              at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:173: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-PIR-Sensor/node_modules/bindin                                                                                                                     gs/bindings.js:76:44)
          MagicMirror will not quit, but it might be a good idea to check why this happene                                                                                                                     d. Maybe no internet connection?
          If you think this really is an issue, please open an issue on GitHub: https://gi                                                                                                                     thub.com/MichMich/MagicMirror/issues
          Launching application.
          
          

          But it does not start.

          I did also

          pi@magicpi:~/MagicMirror $ npm list | grep electron
          ├─┬ electron@1.4.15
          │ ├─┬ electron-download@3.3.0
          │ ├─┬ electron-chromedriver@1.7.1
          │ │ └─┬ electron-download@4.1.0
          │ │ │ └─┬ electron-to-chromium@1.3.30
          │ │ │   └── electron-releases@2.1.0
          pi@magicpi:~/MagicMirror $ npm rebuild --runtime=electron --target=1.4.15 --disturl=https://atom.io/download/atom-shell --abi=50
          

          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
          • B
            bhepler Module Developer
            last edited by

            This thread should help: https://forum.magicmirror.builders/post/7634

            F 1 Reply Last reply
            Reply Quote 0
            • F
              fox @bhepler
              last edited by

              @bhepler
              I tried the commands of the thread it, but no effect… Any help ?

              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
              • H
                hoddog
                last edited by

                Hi,

                Same problem here. After yesterday’s update (git hub && npm install) two modules (MMM-PIR and MMM-MyCommute) has wrong version (except 50, got 48). After launching screen is just black. I’ve tried to update electron (npm rebuild --runtime=electron --target=1.4.15 --disturl=https://atom.io/download/atom-shell --abi=50)but nothing changed. How to start it?

                F F 2 Replies Last reply
                Reply Quote 0
                • F
                  fox @hoddog
                  last edited by

                  @hoddog Here is my result: https://forum.magicmirror.builders/post/33238

                  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
                  • H
                    hoddog
                    last edited by

                    Should I wait for new update or install everything from beginning?

                    1 Reply Last reply
                    Reply Quote 1
                    • MichMichM
                      MichMich
                      last edited by

                      What you could try:

                      • backup your module folder.
                      • backup your config file
                      • remove MagicMirror
                      • reinstall
                      • put modules & config back.
                      F P 2 Replies Last reply
                      Reply Quote 0
                      • H
                        hoddog
                        last edited by

                        So i’ve used solution from here:
                        https://forum.magicmirror.builders/topic/6045/black-screen-after-install-update-v2-2?page=1
                        For my not working modules.
                        And it works. Mirror started… Huuuh.
                        Thank you mr ryck!

                        1 Reply Last reply
                        Reply Quote 0
                        • F
                          Fonfon @hoddog
                          last edited by

                          @hoddog said in Update Error of v.2.2.0 :(:

                          Hi,

                          Same problem here. After yesterday’s update (git hub && npm install) two modules (MMM-PIR and MMM-MyCommute) has wrong version (except 50, got 48). After launching screen is just black. I’ve tried to update electron (npm rebuild --runtime=electron --target=1.4.15 --disturl=https://atom.io/download/atom-shell --abi=50)but nothing changed. How to start it?

                          Hi,

                          Same problem same modules
                          solution ?

                          1 Reply Last reply
                          Reply Quote 0
                          • F
                            fox
                            last edited by

                            I did a complete reinstall. This was the last time that i did an Update of the Magic Mirror :)
                            This happend with every update till now.

                            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
                            • O
                              open_book @bhepler
                              last edited by

                              @bhepler @fox I had the same problem and followed the steps here to reinstall electron. It worked for me without further changes.

                              Thanks!

                              sudo insert motivational.quote

                              S 1 Reply Last reply
                              Reply Quote 1
                              • F
                                Fonfon @bhepler
                                last edited by

                                This post is deleted!
                                1 Reply Last reply
                                Reply Quote 0
                                • F
                                  Fonfon @MichMich
                                  last edited by Fonfon

                                  @MichMich Hi,

                                  i backup my modules folder and my config folder
                                  i delete MagicMirror folder
                                  reinstall MagicMirror
                                  copy/paste modules &config folders
                                  i do that but same error on the same module
                                  i don’t understand why
                                  i need some help please
                                  thanks

                                  1 Reply Last reply
                                  Reply Quote 0
                                  • F
                                    Fonfon
                                    last edited by

                                    why update do that ?
                                    need to reinstall all modules
                                    now its good …

                                    1 Reply Last reply
                                    Reply Quote 0
                                    • P
                                      PRECIOUS VIRAL @MichMich
                                      last edited by

                                      @MichMich How to solve this error?

                                      pi@PrivatePiNetwork:~/MagicMirror $ git pull && npm install
                                      Updating b799609…20823bf
                                      error: Your local changes to the following files would be overwritten by merge:
                                      fonts/package.json
                                      modules/default/clock/clock.js
                                      modules/default/currentweather/currentweather.js
                                      modules/default/weatherforecast/README.md
                                      Please, commit your changes or stash them before you can merge.
                                      error: The following untracked working tree files would be overwritten by merge:
                                      fonts/package-lock.json
                                      package-lock.json
                                      vendor/package-lock.json
                                      Please move or remove them before you can merge.
                                      Aborting

                                      1 Reply Last reply
                                      Reply Quote 0
                                      • A
                                        afedriansyah
                                        last edited by

                                        hey I’ve been trying to install the magic mirror from https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh | bash and once I clicked enter and this message appeared0_1546483547246_magicmirror.jpg

                                        anyone any ideas how to solve this. a helpful answer and guide would be appreciated

                                        S M 2 Replies Last reply
                                        Reply Quote 0
                                        • S
                                          SoleLo @open_book
                                          last edited by

                                          @open_book How do you remove and reinstall the electron?

                                          1 Reply Last reply
                                          Reply Quote 0
                                          • S
                                            shbatm Module Developer @afedriansyah
                                            last edited by

                                            @afedriansyah it looks like you already have it cloned to the directory, if you really really want to start fresh (WARNING WILL DELETE YOUR EXISTING INSTALLATION): rm -R ~/MagicMirror and then rerun the script. If you just want to upgrade, after the git pull, do npm install.

                                            Finally, I wouldn’t recommend running MM as root, unless you know what you’re doing…

                                            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
                                            • 2
                                            • 1 / 2
                                            • 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