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.

    MM cant boot, wont boot!

    Scheduled Pinned Locked Moved Troubleshooting
    40 Posts 5 Posters 17.4k Views 5 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.
    • S Do not disturb
      sdetweil @Cyric
      last edited by

      @Cyric ok, where do u start mm? pm2 or nom start manually

      if pm2 do

      pm2 logs --lines=100
      

      if nom start, the console output is right there.

      let us know what u find

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      C 1 Reply Last reply Reply Quote 0
      • C Offline
        Cyric @sdetweil
        last edited by

        @sdetweil Here is what it gave me when i tried npm start:
        "magicmirror@2.11.0 start /home/pi/MagicMirror

        DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js

        [2020-07-02 21:33:26.029] [LOG] Starting MagicMirror: v2.11.0
        [2020-07-02 21:33:26.054] [LOG] Loading config …
        [2020-07-02 21:33:26.071] [LOG] Loading module helpers …
        [2020-07-02 21:33:26.079] [LOG] No helper found for module: alert.
        [2020-07-02 21:33:26.249] [LOG] Initializing new module helper …
        [2020-07-02 21:33:26.251] [LOG] Module helper loaded: updatenotification
        [2020-07-02 21:33:26.253] [LOG] No helper found for module: clock.
        [2020-07-02 21:33:26.279] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module ‘ical’
        Require stack:

        • /home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js
        • /home/pi/MagicMirror/modules/default/calendar/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

        [2020-07-02 21:33:26.282] [LOG] Loading module helpers …
        [2020-07-02 21:33:26.284] [LOG] No helper found for module: alert.
        [2020-07-02 21:33:26.286] [LOG] Initializing new module helper …
        [2020-07-02 21:33:26.287] [LOG] Module helper loaded: updatenotification
        [2020-07-02 21:33:26.289] [LOG] No helper found for module: clock.
        [2020-07-02 21:33:26.300] [ERROR] App threw an error during load
        [2020-07-02 21:33:26.303] [ERROR] Error: Cannot find module ‘ical’
        Require stack:

        • /home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js
        • /home/pi/MagicMirror/modules/default/calendar/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
        • at Module._resolveFilename (internal/modules/cjs/loader.js:627:15)
          at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:41:16)
          at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
          at Function.Module._load (internal/modules/cjs/loader.js:531:27)
          at Module.require (internal/modules/cjs/loader.js:685:19)
          at require (internal/modules/cjs/helpers.js:16:16)
          at Object. (/home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js:8:14)
          at Module._compile (internal/modules/cjs/loader.js:786:30)
          at Object.Module._extensions…js (internal/modules/cjs/loader.js:798:10)
          at Module.load (internal/modules/cjs/loader.js:645:32)
          [2020-07-02 21:33:26.308] [ERROR] Whoops! There was an uncaught exception…
          [2020-07-02 21:33:26.310] [ERROR] Error: Cannot find module ‘ical’
          Require stack:
        • /home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js
        • /home/pi/MagicMirror/modules/default/calendar/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
        • at Module._resolveFilename (internal/modules/cjs/loader.js:627:15)
          at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:41:16)
          at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
          at Function.Module._load (internal/modules/cjs/loader.js:531:27)
          at Module.require (internal/modules/cjs/loader.js:685:19)
          at require (internal/modules/cjs/helpers.js:16:16)
          at Object. (/home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js:8:14)
          at Module._compile (internal/modules/cjs/loader.js:786:30)
          at Object.Module._extensions…js (internal/modules/cjs/loader.js:798:10)
          at Module.load (internal/modules/cjs/loader.js:645:32) {
          code: ‘MODULE_NOT_FOUND’,
          requireStack: [
          ‘/home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js’,
          ‘/home/pi/MagicMirror/modules/default/calendar/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’,
          undefined
          ]
          }
          [2020-07-02 21:33:26.337] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
          [2020-07-02 21:33:26.338] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues"
        S 1 Reply Last reply Reply Quote 0
        • S Do not disturb
          sdetweil @Cyric
          last edited by

          @Cyric >Cannot find module ‘ical’

          hm…
          the calendar reader module is not found

          can you do

          cd ~/MagicMirror
          rm package-lock.json
          rm -rf node_ modules
          npm install
          

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • C Offline
            Cyric
            last edited by

            I ran that, then did npm start again. It told me: "> magicmirror@2.11.0 start /home/pi/MagicMirror

            DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js

            [2020-07-03 07:35:17.160] [ERROR] App threw an error during load
            [2020-07-03 07:35:17.189] [ERROR] Error: Cannot find module ‘/home/pi/MagicMirror/js/…/modules/default/defaultmodules.js’
            Require stack:

            • /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
            • at Module._resolveFilename (internal/modules/cjs/loader.js:627:15)
              at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:41:16)
              at Function.Module._load (internal/modules/cjs/loader.js:531:27)
              at Module.require (internal/modules/cjs/loader.js:685:19)
              at require (internal/modules/cjs/helpers.js:16:16)
              at Object. (/home/pi/MagicMirror/js/app.js:12:22)
              at Module._compile (internal/modules/cjs/loader.js:786:30)
              at Object.Module._extensions…js (internal/modules/cjs/loader.js:798:10)
              at Module.load (internal/modules/cjs/loader.js:645:32)
              at Function.Module._load (internal/modules/cjs/loader.js:560:12)
              A JavaScript error occurred in the main process
              Uncaught Exception:
              Error: Cannot find module ‘/home/pi/MagicMirror/js/…/modules/default/defaultmodules.js’
              Require stack:
            • /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
            • at Module._resolveFilename (internal/modules/cjs/loader.js:627:15)
              at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:41:16)
              at Function.Module._load (internal/modules/cjs/loader.js:531:27)
              at Module.require (internal/modules/cjs/loader.js:685:19)
              at require (internal/modules/cjs/helpers.js:16:16)
              at Object. (/home/pi/MagicMirror/js/app.js:12:22)
              at Module._compile (internal/modules/cjs/loader.js:786:30)
              at Object.Module._extensions…js (internal/modules/cjs/loader.js:798:10)
              at Module.load (internal/modules/cjs/loader.js:645:32)
              at Function.Module._load (internal/modules/cjs/loader.js:560:12)"

            Now it won’t load the black screen. I have not rebooted yet.

            S 1 Reply Last reply Reply Quote 0
            • S Do not disturb
              sdetweil @Cyric
              last edited by sdetweil

              @Cyric weird
              do

              cd ~/MagicMirror
              git checkout modules/default/defaultmodules.js
              

              then try npm start again

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              C 2 Replies Last reply Reply Quote 0
              • C Offline
                Cyric @sdetweil
                last edited by

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • C Offline
                  Cyric @sdetweil
                  last edited by

                  @sdetweil ok, progress. It started magic mirror with a black screen and no mouse. Before it was a black screen with the mouse, and it said electron instead of magic mirror 2. I rebooted and tried to reload my config.js, but it didn’t help.

                  S 1 Reply Last reply Reply Quote 0
                  • S Do not disturb
                    sdetweil @Cyric
                    last edited by sdetweil

                    @Cyric can u show any errors from pm2 or npm start screen

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    C 1 Reply Last reply Reply Quote 0
                    • C Offline
                      Cyric @sdetweil
                      last edited by

                      @sdetweil main.js:478 Initializing MagicMirror.
                      translator.js:202 Loading core translation file: translations/en.json
                      translator.js:227 Loading core translation fallback file: translations/en.json
                      loader.js:175 Load script: modules/default/alert//alert.js
                      :8080/modules/default/alert//alert.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
                      loader.js:185 Error on loading script: modules/default/alert//alert.js
                      script.onerror @ loader.js:185
                      loader.js:175 Load script: modules/default/updatenotification//updatenotification.js
                      :8080/modules/default/updatenotification//updatenotification.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
                      loader.js:185 Error on loading script: modules/default/updatenotification//updatenotification.js
                      script.onerror @ loader.js:185
                      loader.js:175 Load script: modules/default/clock//clock.js
                      :8080/modules/default/clock//clock.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
                      loader.js:185 Error on loading script: modules/default/clock//clock.js
                      script.onerror @ loader.js:185
                      loader.js:175 Load script: modules/default/calendar//calendar.js
                      :8080/modules/default/calendar//calendar.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
                      loader.js:185 Error on loading script: modules/default/calendar//calendar.js
                      script.onerror @ loader.js:185
                      loader.js:175 Load script: modules/default/compliments//compliments.js
                      :8080/modules/default/compliments//compliments.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
                      loader.js:185 Error on loading script: modules/default/compliments//compliments.js
                      script.onerror @ loader.js:185
                      loader.js:175 Load script: modules/default/currentweather//currentweather.js
                      :8080/modules/default/currentweather//currentweather.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
                      loader.js:185 Error on loading script: modules/default/currentweather//currentweather.js
                      script.onerror @ loader.js:185
                      loader.js:175 Load script: modules/default/weatherforecast//weatherforecast.js
                      :8080/modules/default/weatherforecast//weatherforecast.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
                      loader.js:185 Error on loading script: modules/default/weatherforecast//weatherforecast.js
                      script.onerror @ loader.js:185
                      loader.js:175 Load script: modules/default/newsfeed//newsfeed.js
                      :8080/modules/default/newsfeed//newsfeed.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
                      loader.js:185 Error on loading script: modules/default/newsfeed//newsfeed.js
                      script.onerror @ loader.js:185
                      loader.js:194 Load stylesheet: css/custom.css
                      main.js:496 All modules started!
                      /home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/renderer/security-warnings.js:95 Electron Security Warning (Insecure Resources) This renderer process loads resources using insecure
                      protocols.This exposes users of this app to unnecessary security risks.
                      Consider loading the following resources over HTTPS or FTPS.

                      • http://localhost:8080/css/main.css
                      • http://localhost:8080/fonts/roboto.css
                      • http://localhost:8080/socket.io/socket.io.js
                      • http://localhost:8080/vendor/node_modules/nunjucks/browser/nunjucks.min.js
                      • http://localhost:8080/js/defaults.js
                      • http://localhost:8080/config/config.js
                      • http://localhost:8080/vendor/vendor.js
                      • http://localhost:8080/modules/default/defaultmodules.js
                      • http://localhost:8080/js/logger.js
                      • http://localhost:8080/translations/translations.js
                      • http://localhost:8080/js/translator.js
                      • http://localhost:8080/js/class.js
                      • http://localhost:8080/js/module.js
                      • http://localhost:8080/js/loader.js
                      • http://localhost:8080/js/socketclient.js
                      • http://localhost:8080/js/main.js
                      • http://localhost:8080/fonts/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Regular.woff2
                      • http://localhost:8080/translations/en.json
                      • http://localhost:8080/translations/en.json
                      • http://localhost:8080/css/custom.css

                      For more information and help, consult
                      https://electronjs.org/docs/tutorial/security.
                      This warning will not show up
                      once the app is packaged.
                      warnAboutInsecureResources @ /home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/renderer/security-warnings.js:95
                      /home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/renderer/security-warnings.js:145 Electron Security Warning (Insecure Content-Security-Policy) This renderer process has either no Content Security
                      Policy set or a policy with “unsafe-eval” enabled. This exposes users of
                      this app to unnecessary security risks.

                      For more information and help, consult
                      https://electronjs.org/docs/tutorial/security.
                      This warning will not show up
                      once the app is packaged.
                      (anonymous) @ /home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/renderer/security-warnings.js:145

                      S 1 Reply Last reply Reply Quote 0
                      • S Do not disturb
                        sdetweil @Cyric
                        last edited by

                        @Cyric are u running MM OS? or docker?

                        those files should be there.

                        cd ~/MagicMirror
                        ls modules/default -laF

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        C chrisparkerC 2 Replies Last reply Reply Quote 1
                        • C Offline
                          Cyric @sdetweil
                          last edited by

                          @sdetweil I’m running rasbian like the tutorial suggests.

                          That command gave me: “pi@raspberrypi:~/MagicMirror $ ls modules/default -laF
                          total 12
                          drwxr-xr-x 2 pi pi 4096 Jul 3 08:21 ./
                          drwxr-xr-x 3 pi pi 4096 Jul 3 08:21 …/
                          -rw-r–r-- 1 pi pi 512 Jul 3 08:21 defaultmodules.js”

                          S 1 Reply Last reply Reply Quote 0
                          • S Do not disturb
                            sdetweil @Cyric
                            last edited by

                            @Cyric well. why are they. missing?

                            I don’t know if this will work

                            cd ~/MagicMirror
                            git checkout modules/default

                            if not, you will probably have to git clone and copy the files from the clone

                            git clone https://github.com/MichMich/MagicMirror. git mm

                            cp -r -p mm/modules/default ~/MagicMirror/modules

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

                            C 1 Reply Last reply Reply Quote 0
                            • C Offline
                              Cyric @sdetweil
                              last edited by

                              @sdetweil I have no idea what happened. I ran the update, restarted, and nothing worked.

                              So, the command git checkout and nothing seemed to happen. I removed the folder and did the git clone of the directory. I tried to do git mm and it said mm is not a git command. I tried to run the last line you gave me, and it said no such file or directory.

                              I really appreciate all your work on this.

                              S 1 Reply Last reply Reply Quote 0
                              • S Do not disturb
                                sdetweil @Cyric
                                last edited by

                                @Cyric that git clone was all one long line

                                clone this repo into a folder named mm

                                you removed the folder, that’s where it went further south

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

                                C 1 Reply Last reply Reply Quote 0
                                • C Offline
                                  Cyric
                                  last edited by

                                  This post is deleted!
                                  1 Reply Last reply Reply Quote 0
                                  • C Offline
                                    Cyric @sdetweil
                                    last edited by Cyric

                                    @sdetweil when I out the whole line in, it said fatal too many arguments. I made a new folder called mm and did the git clone of the site.

                                    Forgot to run npm install, will do that and post results.

                                    1 Reply Last reply Reply Quote 0
                                    • C Offline
                                      Cyric
                                      last edited by Cyric

                                      ok, mostly back. My calendar and news feed is still stuck on loading, but everything else is back up. I will post some error logs later after i poke around.

                                      Sam, thank you so much for your help. It is really appreciated.

                                      1 Reply Last reply Reply Quote 0
                                      • C Offline
                                        Cyric
                                        last edited by

                                        rebooted this morning, reinstalled a module, and everything is back except the weather only shows 2 days. Thank you again for your help Sam.

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

                                          @sdetweil I’ve going through the same thing. I had a good running copy of MM and I attempted to upgrade to the latest version. It would not boot. I followed this thread as far as discovering that all the modules had been deleted. I used the command to reinstall the default module, then reinstalled my selected modules from the MM Package Manager. Still doesn’t work, it only shows a blank screen with a pointer.

                                          Running npm restart gives:

                                          > magicmirror@2.12.0 start /home/pi/MagicMirror
                                          > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
                                          
                                          [2020-07-05 17:36:08.008] [LOG]    Starting MagicMirror: v2.12.0
                                          [2020-07-05 17:36:08.021] [LOG]    Loading config ...
                                          [2020-07-05 17:36:08.031] [LOG]    Loading module helpers ...
                                          [2020-07-05 17:36:08.035] [LOG]    No helper found for module: MMM-Carousel.
                                          [2020-07-05 17:36:08.046] [LOG]    Initializing new module helper ...
                                          [2020-07-05 17:36:08.048] [LOG]    Module helper loaded: MMM-WatchDog
                                          [2020-07-05 17:36:08.700] [LOG]    Initializing new module helper ...
                                          [2020-07-05 17:36:08.701] [LOG]    Module helper loaded: MMM-SystemStats
                                          [2020-07-05 17:36:08.819] [LOG]    Initializing new module helper ...
                                          [2020-07-05 17:36:08.820] [LOG]    Module helper loaded: MMM-PilotWX
                                          [2020-07-05 17:36:08.822] [LOG]    No helper found for module: MMM-DigClock.
                                          [2020-07-05 17:36:08.828] [ERROR]  WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module 'cheerio'
                                          Require stack:
                                          - /home/pi/MagicMirror/modules/MMM-DailyDilbert/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
                                          - 
                                          [2020-07-05 17:36:08.830] [LOG]    Loading module helpers ...
                                          [2020-07-05 17:36:08.831] [LOG]    No helper found for module: MMM-Carousel.
                                          [2020-07-05 17:36:08.833] [LOG]    Initializing new module helper ...
                                          [2020-07-05 17:36:08.835] [LOG]    Module helper loaded: MMM-WatchDog
                                          [2020-07-05 17:36:08.836] [LOG]    Initializing new module helper ...
                                          [2020-07-05 17:36:08.837] [LOG]    Module helper loaded: MMM-SystemStats
                                          [2020-07-05 17:36:08.838] [LOG]    Initializing new module helper ...
                                          [2020-07-05 17:36:08.839] [LOG]    Module helper loaded: MMM-PilotWX
                                          [2020-07-05 17:36:08.840] [LOG]    No helper found for module: MMM-DigClock.
                                          [2020-07-05 17:36:08.843] [ERROR]  App threw an error during load
                                          [2020-07-05 17:36:08.845] [ERROR]  Error: Cannot find module 'cheerio'
                                          Require stack:
                                          - /home/pi/MagicMirror/modules/MMM-DailyDilbert/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
                                          - 
                                              at Module._resolveFilename (internal/modules/cjs/loader.js:627:15)
                                              at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:41:16)
                                              at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
                                              at Function.Module._load (internal/modules/cjs/loader.js:531:27)
                                              at Module.require (internal/modules/cjs/loader.js:685:19)
                                              at require (internal/modules/cjs/helpers.js:16:16)
                                              at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-DailyDilbert/node_helper.js:3:15)
                                              at Module._compile (internal/modules/cjs/loader.js:786:30)
                                              at Object.Module._extensions..js (internal/modules/cjs/loader.js:798:10)
                                              at Module.load (internal/modules/cjs/loader.js:645:32)
                                          [2020-07-05 17:36:08.848] [ERROR]  Whoops! There was an uncaught exception...
                                          [2020-07-05 17:36:08.849] [ERROR]  Error: Cannot find module 'cheerio'
                                          Require stack:
                                          - /home/pi/MagicMirror/modules/MMM-DailyDilbert/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
                                          - 
                                              at Module._resolveFilename (internal/modules/cjs/loader.js:627:15)
                                              at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:41:16)
                                              at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
                                              at Function.Module._load (internal/modules/cjs/loader.js:531:27)
                                              at Module.require (internal/modules/cjs/loader.js:685:19)
                                              at require (internal/modules/cjs/helpers.js:16:16)
                                              at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-DailyDilbert/node_helper.js:3:15)
                                              at Module._compile (internal/modules/cjs/loader.js:786:30)
                                              at Object.Module._extensions..js (internal/modules/cjs/loader.js:798:10)
                                              at Module.load (internal/modules/cjs/loader.js:645:32) {
                                            code: 'MODULE_NOT_FOUND',
                                            requireStack: [
                                              '/home/pi/MagicMirror/modules/MMM-DailyDilbert/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',
                                              undefined
                                            ]
                                          }
                                          [2020-07-05 17:36:08.860] [ERROR]  MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
                                          [2020-07-05 17:36:08.861] [ERROR]  If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
                                          [2020-07-05 17:36:09.030] [LOG]    Launching application.
                                          

                                          and running npm run config:check gives:

                                          > magicmirror@2.12.0 config:check /home/pi/MagicMirror
                                          > node js/check_config.js
                                          
                                          [2020-07-05 17:37:18.657] [INFO]   Checking file...  /home/pi/MagicMirror/config/config.js
                                          [2020-07-05 17:37:18.948] [LOG]    Line 1 col 1 Definition for rule 'prettier/prettier' was not found.
                                          /home/pi/MagicMirror/js/check_config.js:66
                                          			throw new Error("Wrong syntax in config file!");
                                          			^
                                          
                                          Error: Wrong syntax in config file!
                                              at /home/pi/MagicMirror/js/check_config.js:66:10
                                              at FSReqWrap.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:53:3)
                                          npm ERR! code ELIFECYCLE
                                          npm ERR! errno 1
                                          npm ERR! magicmirror@2.12.0 config:check: `node js/check_config.js`
                                          npm ERR! Exit status 1
                                          npm ERR! 
                                          npm ERR! Failed at the magicmirror@2.12.0 config:check 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/2020-07-05T15_37_18_992Z-debug.log
                                          

                                          and that log shows:

                                          0 info it worked if it ends with ok
                                          1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'run', 'config:check' ]
                                          2 info using npm@6.14.4
                                          3 info using node@v10.20.1
                                          4 verbose run-script [ 'preconfig:check', 'config:check', 'postconfig:check' ]
                                          5 info lifecycle magicmirror@2.12.0~preconfig:check: magicmirror@2.12.0
                                          6 info lifecycle magicmirror@2.12.0~config:check: magicmirror@2.12.0
                                          7 verbose lifecycle magicmirror@2.12.0~config:check: unsafe-perm in lifecycle true
                                          8 verbose lifecycle magicmirror@2.12.0~config:check: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle$
                                          9 verbose lifecycle magicmirror@2.12.0~config:check: CWD: /home/pi/MagicMirror
                                          10 silly lifecycle magicmirror@2.12.0~config:check: Args: [ '-c', 'node js/check_config.js' ]
                                          11 silly lifecycle magicmirror@2.12.0~config:check: Returned: code: 1  signal: null
                                          12 info lifecycle magicmirror@2.12.0~config:check: Failed to exec config:check script
                                          13 verbose stack Error: magicmirror@2.12.0 config:check: `node js/check_config.js`
                                          13 verbose stack Exit status 1
                                          13 verbose stack     at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js$
                                          13 verbose stack     at EventEmitter.emit (events.js:198:13)
                                          13 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spaw$
                                          13 verbose stack     at ChildProcess.emit (events.js:198:13)
                                          13 verbose stack     at maybeClose (internal/child_process.js:982:16)
                                          13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
                                          14 verbose pkgid magicmirror@2.12.0
                                          15 verbose cwd /home/pi/MagicMirror
                                          16 verbose Linux 4.19.97-v7+
                                          17 verbose argv "/usr/bin/node" "/usr/bin/npm" "run" "config:check"
                                          18 verbose node v10.20.1
                                          19 verbose npm  v6.14.4
                                          20 error code ELIFECYCLE
                                          21 error errno 1
                                          22 error magicmirror@2.12.0 config:check: `node js/check_config.js`
                                          22 error Exit status 1
                                          23 error Failed at the magicmirror@2.12.0 config:check script.
                                          23 error This is probably not a problem with npm. There is likely additional logging output above.
                                          24 verbose exit [ 1, true ]
                                          
                                          

                                          I’m out of ideas - can anybody help please?

                                          TIA,

                                          Chris

                                          S 1 Reply Last reply Reply Quote 0
                                          • S Do not disturb
                                            sdetweil @chrisparker
                                            last edited by

                                            @chrisparker somebody is missing one of their dependencies

                                            Cannot find module 'cheerio
                                            

                                            do

                                            cd ~/MagicMirror
                                            npm install cheerio
                                            

                                            then try to start

                                            Sam

                                            How to add modules

                                            learning how to use browser developers window for css changes

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