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.

    Just updated Mirror, now mirror will not work.

    Scheduled Pinned Locked Moved Troubleshooting
    14 Posts 2 Posters 3.7k Views 2 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.
    • N Offline
      Nneuland
      last edited by

      Any help? Why would I be missing files?

      pi@raspberrypi:~ $ cd ~/MagicMirror
      pi@raspberrypi:~/MagicMirror $ npm start

      magicmirror@2.16.0 start /home/pi/MagicMirror
      DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js

      sh: 1: ./node_modules/.bin/electron: not found
      npm ERR! code ELIFECYCLE
      npm ERR! syscall spawn
      npm ERR! file sh
      npm ERR! errno ENOENT
      npm ERR! magicmirror@2.16.0 start: DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
      npm ERR! spawn ENOENT
      npm ERR!
      npm ERR! Failed at the magicmirror@2.16.0 start 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:
      npm ERR! /home/pi/.npm/_logs/2021-07-05T23_42_22_591Z-debug.log

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

        @nneuland what pi? did u do npm install?

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        N 1 Reply Last reply Reply Quote 0
        • N Offline
          Nneuland @sdetweil
          last edited by

          @sdetweil

          raspberry pi 4.

          I did an install from the magicmirror remote. The last update worked fine, no problems.

          git pull && npm install in the terminal should take care of that, right?

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

            @nneuland well, there are others reporting similar problems…

            not sure what the problem is yet

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            N 1 Reply Last reply Reply Quote 0
            • N Offline
              Nneuland @sdetweil
              last edited by

              @sdetweil

              Ohhhh no. Ok. At least I’m not going mad alone. Thank you for letting me know

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

                @nneuland but fresh install doesn’t seem to have the problem…

                use my script, it never fails…

                rename the existing MagicMirror folder
                then run the install script.

                see https://github.com/sdetweil/MagicMirror_scripts

                then u can copy your modules over and config.js from the renamed folder

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                N 1 Reply Last reply Reply Quote 0
                • N Offline
                  Nneuland @sdetweil
                  last edited by

                  @sdetweil

                  Saved again by Sam/. Thank you so very much

                  N 1 Reply Last reply Reply Quote 0
                  • N Offline
                    Nneuland @Nneuland
                    last edited by

                    @sdetweil I think I celebrated too early.

                    Very odd thing happening. I’ve lost all of my modules. Back to default. What in the world did I do now?

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

                      @nneuland did u copy your stuff over? from the old to the new? including config.js?

                      rename the new modules/default folder out of the way for the copy

                      then from the new modules folder
                      cp -r -p ~/Magicmirror-old/modules .

                      then rm -rf default
                      and rename the saved default folder back

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      N 1 Reply Last reply Reply Quote 0
                      • N Offline
                        Nneuland @sdetweil
                        last edited by

                        @sdetweil

                        yeah. Just getting a black screen and a cursor.

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

                          @nneuland black screen, look at the messages where u start MagicMirror

                          npm start
                          or pm2

                          if pm2, then the pm2 logs --lines=100
                          will show the same messages

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

                          N 1 Reply Last reply Reply Quote 0
                          • N Offline
                            Nneuland @sdetweil
                            last edited by

                            @sdetweil

                            you’re right

                            [09.07.2021 21:41.21.879] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module ‘request’
                            Require stack:

                            • /home/pi/MagicMirror/modules/MMM-CoinMarketCap/node_helper.js
                            • /home/pi/MagicMirror/js/app.js
                            • /home/pi/MagicMirror/js/electron.js
                            • /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js

                            not sure why

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

                              @nneuland because request was removed in the latest release, as it has security issue that could not be fixed., and all users recommended to get on to something else ( aka deprecated)

                              in the short term

                              cd ~/MagicMirror
                              npm install request

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

                              N 1 Reply Last reply Reply Quote 0
                              • N Offline
                                Nneuland @sdetweil
                                last edited by

                                @sdetweil

                                You’re a gentleman and a scholar!!!

                                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