MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    SOLVED MM not starting after update

    Troubleshooting
    3
    20
    1036
    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.
    • J
      jani.karna last edited by

      I updated my MagicMirror to latest version, and now it does not start.

      pm2 logs mm
      

      shows this:

      0|mm  | A JavaScript error occurred in the main process
      0|mm  | Uncaught Exception:
      0|mm  | Error: Cannot find module 'module-alias/register'
      0|mm  |     at Module._resolveFilename (internal/modules/cjs/loader.js:602:15)
      0|mm  |     at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12)
      0|mm  |     at Function.Module._load (internal/modules/cjs/loader.js:528:25)
      0|mm  |     at Module.require (internal/modules/cjs/loader.js:658:17)
      0|mm  |     at require (internal/modules/cjs/helpers.js:20:18)
      0|mm  |     at Object.<anonymous> (/home/pi/MagicMirror/js/app.js:15:1)
      0|mm  |     at Object.<anonymous> (/home/pi/MagicMirror/js/app.js:283:3)
      0|mm  |     at Module._compile (internal/modules/cjs/loader.js:711:30)
      0|mm  |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10)
      0|mm  |     at Module.load (internal/modules/cjs/loader.js:620:32)
      
      

      I had a feeling I shouldn’t do this, but I did anyway. How to fix it?

      S 1 Reply Last reply Reply Quote 0
      • S
        sdetweil @jani.karna last edited by

        @jani-karna how did u update?

        Sam

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 0
        • D
          dicker182 last edited by

          same here, I just did an

          git stash
          git pull

          in the Magicmirrir directory

          S 1 Reply Last reply Reply Quote 0
          • S
            sdetweil @dicker182 last edited by

            @dicker182 also need npm install

            Sam

            Create a working config
            How to add modules

            D 1 Reply Last reply Reply Quote 0
            • D
              dicker182 @sdetweil last edited by

              @sdetweil thats it. Thank you!

              1 Reply Last reply Reply Quote 0
              • J
                jani.karna last edited by

                npm install helped me also. Thank you!

                S 1 Reply Last reply Reply Quote 0
                • S
                  sdetweil @jani.karna last edited by

                  @jani-karna thanks, can u tell me where u got the update instructions?

                  Sam

                  Create a working config
                  How to add modules

                  J 1 Reply Last reply Reply Quote 0
                  • J
                    jani.karna @sdetweil last edited by

                    @sdetweil
                    from here:

                    https://github.com/MichMich/MagicMirror#updating-you-magicmirror
                    

                    and followed the instructions in “updating”-section. I first did the “test” update and then after no problems used the “apply” as instructed there.
                    It didn’t mention “npm install” there.

                    S 1 Reply Last reply Reply Quote 0
                    • S
                      sdetweil @jani.karna last edited by

                      @jani-karna ok, the script WOULD have done the update, but it failed…

                      can u send me the MagicMirror/installers/upgrade.log?

                      same id as here on gmail…

                      thanks

                      Sam

                      Create a working config
                      How to add modules

                      J 2 Replies Last reply Reply Quote 0
                      • J
                        jani.karna @sdetweil last edited by

                        @sdetweil should be on its way now.

                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 1 / 2
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy