• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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 not loading after software update

Scheduled Pinned Locked Moved Solved Troubleshooting
24 Posts 2 Posters 4.6k 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.
  • R Offline
    Redicaljk
    last edited by Aug 20, 2022, 2:58 AM

    Not sure if the recent software update has anything to do with MM not loading.

    This is/are the error(s);
    19.08.2022 22:52.46.248] [ERROR] WARNING! Could not validate config file. Starting with default configuration. Please correct syntax errors at or above this line: /home/pi/MagicMirror/node_modules/jsdom/lib/jsdom/browser/parser/html.js:170
    after._pushedOnStackOfOpenElements?.();
    ^

    SyntaxError: Unexpected token .
    at Module._compile (internal/modules/cjs/loader.js:722:23)
    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)
    at Module.require (internal/modules/cjs/loader.js:685:19)
    at require (internal/modules/cjs/helpers.js:16:16)
    at Object. (/home/pi/MagicMirror/node_modules/jsdom/lib/jsdom/browser/parser/index.js:4:20)
    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)
    [19.08.2022 22:52.46.249] [LOG] Loading module helpers …
    [19.08.2022 22:52.46.250] [LOG] No helper found for module: alert.
    [19.08.2022 22:52.46.250] [LOG] Initializing new module helper …
    [19.08.2022 22:52.46.251] [LOG] Module helper loaded: MMM-AlexaControl
    [19.08.2022 22:52.46.251] [LOG] Initializing new module helper …
    [19.08.2022 22:52.46.252] [LOG] Module helper loaded: updatenotification
    [19.08.2022 22:52.46.253] [LOG] No helper found for module: clock.
    [19.08.2022 22:52.46.253] [LOG] Initializing new module helper …
    [19.08.2022 22:52.46.254] [LOG] Module helper loaded: calendar
    [19.08.2022 22:52.46.254] [LOG] No helper found for module: calendar_monthly.
    [19.08.2022 22:52.46.255] [LOG] No helper found for module: weather.
    [19.08.2022 22:52.46.270] [ERROR] App threw an error during load
    [19.08.2022 22:52.46.270] [ERROR] /home/pi/MagicMirror/node_modules/jsdom/lib/jsdom/browser/parser/html.js:170
    after._pushedOnStackOfOpenElements?.();
    ^

    Any help would be greatly appreciated.

    S 1 Reply Last reply Aug 20, 2022, 11:25 AM Reply Quote 0
    • S Away
      sdetweil @Redicaljk
      last edited by Aug 20, 2022, 2:42 PM

      @Redicaljk k… not sure on calendar…

      on onthisday do

      cd ~/MagicMirror/modules/MMM-OnThisDay
      rm -rf node_modules
      rm package-lock.json
      npm install --omit=dev
      

      then try again , works here

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      R 1 Reply Last reply Aug 20, 2022, 3:10 PM Reply Quote 0
      • S Away
        sdetweil @Redicaljk
        last edited by Aug 20, 2022, 11:25 AM

        @Redicaljk how did you update?

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        R 1 Reply Last reply Aug 20, 2022, 12:45 PM Reply Quote 0
        • R Offline
          Redicaljk @sdetweil
          last edited by Aug 20, 2022, 12:45 PM

          @sdetweil I clicked on Install Updates from the notification in the Task Bar.

          S 1 Reply Last reply Aug 20, 2022, 12:48 PM Reply Quote 0
          • S Away
            sdetweil @Redicaljk
            last edited by sdetweil Aug 20, 2022, 12:49 PM Aug 20, 2022, 12:48 PM

            @Redicaljk MagicMirror does not update that way, only system stuff.

            but maybe node/npm changed
            .can u show results of

            node -v
            npm -v

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            R 1 Reply Last reply Aug 20, 2022, 12:59 PM Reply Quote 0
            • R Offline
              Redicaljk @sdetweil
              last edited by Aug 20, 2022, 12:59 PM

              @sdetweil sorry, I am a complete newbie. I tried entering node-v and npm-v in the terminal and I get “command not found”.

              S 1 Reply Last reply Aug 20, 2022, 1:00 PM Reply Quote 0
              • S Away
                sdetweil @Redicaljk
                last edited by Aug 20, 2022, 1:00 PM

                @Redicaljk there is a space between node and -v

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                R 1 Reply Last reply Aug 20, 2022, 1:01 PM Reply Quote 0
                • R Offline
                  Redicaljk @sdetweil
                  last edited by Aug 20, 2022, 1:01 PM

                  @sdetweil thank you!
                  pi@rpi4:~ $ node -v
                  v16.17.0
                  pi@rpi4:~ $ npm -v
                  8.15.0
                  pi@rpi4:~ $

                  S 1 Reply Last reply Aug 20, 2022, 1:08 PM Reply Quote 0
                  • S Away
                    sdetweil @Redicaljk
                    last edited by sdetweil Aug 20, 2022, 1:09 PM Aug 20, 2022, 1:08 PM

                    @Redicaljk ok, lets redo the npm install for MagicMirror

                    cd ~/MagicMirror
                    rm -rf node_modules
                    rm package-lock.json
                    npm install --omit=dev
                    

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    R 1 Reply Last reply Aug 20, 2022, 1:14 PM Reply Quote 0
                    • R Offline
                      Redicaljk @sdetweil
                      last edited by Aug 20, 2022, 1:14 PM

                      @sdetweil done. Still having an issue:

                      magicmirror@2.20.0 start
                      DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js

                      [20.08.2022 09:12.14.860] [LOG] Starting MagicMirror: v2.20.0
                      [20.08.2022 09:12.14.865] [LOG] Loading config …
                      [20.08.2022 09:12.14.871] [LOG] Loading module helpers …
                      [20.08.2022 09:12.14.873] [LOG] No helper found for module: alert.
                      [20.08.2022 09:12.15.181] [LOG] Initializing new module helper …
                      [20.08.2022 09:12.15.182] [LOG] Module helper loaded: MMM-AlexaControl
                      [20.08.2022 09:12.15.185] [LOG] Initializing new module helper …
                      [20.08.2022 09:12.15.186] [LOG] Module helper loaded: updatenotification
                      [20.08.2022 09:12.15.186] [LOG] No helper found for module: clock.
                      [20.08.2022 09:12.15.403] [LOG] Initializing new module helper …
                      [20.08.2022 09:12.15.404] [LOG] Module helper loaded: calendar
                      [20.08.2022 09:12.15.404] [LOG] No helper found for module: calendar_monthly.
                      [20.08.2022 09:12.15.405] [LOG] No helper found for module: weather.
                      [20.08.2022 09:12.15.408] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module ‘jsdom’
                      Require stack:

                      • /home/pi/MagicMirror/modules/MMM-OnThisDay/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
                      S 1 Reply Last reply Aug 20, 2022, 1:18 PM Reply Quote 0
                      • S Away
                        sdetweil @Redicaljk
                        last edited by Aug 20, 2022, 1:18 PM

                        @Redicaljk see this topic, for missing libraries

                        https://forum.magicmirror.builders/topic/15778/fix-for-black-screen-in-2-16-and-later, 1st post gives instructions

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        R 1 Reply Last reply Aug 20, 2022, 1:19 PM Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 1 / 3
                        1 / 3
                        • First post
                          10/24
                          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