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 is not working..I need help please

    Scheduled Pinned Locked Moved Solved Troubleshooting
    41 Posts 5 Posters 8.6k 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.
    • StoffbeuteluweS Offline
      Stoffbeuteluwe Project Sponsor
      last edited by

      i am on a Mac mini

      i have done git pull and npm install not working
      i have tried a new installation not working

      Last login: Sat Oct  7 15:16:11 on console
      patrickhahn@Mac-mini ~ % cd MagicMirror
      patrickhahn@Mac-mini MagicMirror % npm start
      evalmachine.<anonymous>:45
      } = primordials;
          ^
      
      ReferenceError: primordials is not defined
          at evalmachine.<anonymous>:45:5
          at Object.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/fs.js:11:8)
          at Module._compile (internal/modules/cjs/loader.js:1085:14)
          at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
          at Module.load (internal/modules/cjs/loader.js:950:32)
          at Function.Module._load (internal/modules/cjs/loader.js:790:14)
          at Module.require (internal/modules/cjs/loader.js:974:19)
          at require (internal/modules/cjs/helpers.js:92:18)
          at Object.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:3:27)
          at Module._compile (internal/modules/cjs/loader.js:1085:14)
      patrickhahn@Mac-mini MagicMirror % 
      
      
      
      
      

      I hope someone can help …thanks

      StoffbeuteluweS 1 Reply Last reply Reply Quote 0
      • StoffbeuteluweS Offline
        Stoffbeuteluwe Project Sponsor @sdetweil
        last edited by

        @sdetweil
        the solution is to change the line 11 an 12 of calendarfetcher.js to this …

        
        /*const fetch = require("fetch");*/
        /*const digest = require("digest-fetch");*/
        

        now it works :folded_hands: :smiling_face_with_sunglasses:

        S 1 Reply Last reply Reply Quote 2
        • StoffbeuteluweS Offline
          Stoffbeuteluwe Project Sponsor @Stoffbeuteluwe
          last edited by

          now I have installed node

          after git pull and npm install it shows this …

          > magicmirror@2.25.0 start
          > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
          
          [07.10.2023 16:44.38.170] [LOG]   Starting MagicMirror: v2.25.0
          [07.10.2023 16:44.38.171] [LOG]   Loading config ...
          [07.10.2023 16:44.38.171] [DEBUG] config template file not exists, no envsubst
          [07.10.2023 16:44.38.172] [LOG]   Loading module helpers ...
          [07.10.2023 16:44.38.172] [LOG]   No helper found for module: alert.
          [07.10.2023 16:44.38.200] [LOG]   Initializing new module helper ...
          [07.10.2023 16:44.38.200] [LOG]   Module helper loaded: MMM-Remote-Control
          [07.10.2023 16:44.38.201] [LOG]   Initializing new module helper ...
          [07.10.2023 16:44.38.201] [LOG]   Module helper loaded: updatenotification
          [07.10.2023 16:44.38.201] [LOG]   No helper found for module: MMM-Snow.
          [07.10.2023 16:44.38.201] [LOG]   No helper found for module: MMM-MyWordClock.
          [07.10.2023 16:44.38.201] [LOG]   No helper found for module: clock.
          [07.10.2023 16:44.38.203] [LOG]   No helper found for module: calendar_monthly.
          [07.10.2023 16:44.38.222] [LOG]   Initializing new module helper ...
          [07.10.2023 16:44.38.222] [LOG]   Module helper loaded: calendar
          [07.10.2023 16:44.38.223] [ERROR] (node:28140) UnhandledPromiseRejectionWarning: Error: Cannot find module 'fetch'
          Require stack:
          - /Users/patrickhahn/MM/modules/MMM-MyCalendar/calendarfetcher.js
          - /Users/patrickhahn/MM/modules/MMM-MyCalendar/node_helper.js
          - /Users/patrickhahn/MM/js/app.js
          - /Users/patrickhahn/MM/js/electron.js
          - /Users/patrickhahn/MM/node_modules/electron/dist/Electron.app/Contents/Resources/default_app.asar/main.js
          - 
              at node:internal/modules/cjs/loader:1084:15
              at Function.<anonymous> (node:electron/js2c/browser_init:2:117419)
              at Module._resolveFilename (/Users/patrickhahn/MM/node_modules/module-alias/index.js:49:29)
              at node:internal/modules/cjs/loader:929:27
              at Function._load (node:electron/js2c/asar_bundle:2:13327)
              at Module.require (node:internal/modules/cjs/loader:1150:19)
              at require (node:internal/modules/cjs/helpers:110:18)
              at Object.<anonymous> (/Users/patrickhahn/MM/modules/MMM-MyCalendar/calendarfetcher.js:11:15)
              at Module._compile (node:internal/modules/cjs/loader:1271:14)
              at Object..js (node:internal/modules/cjs/loader:1326:10)
              at Module.load (node:internal/modules/cjs/loader:1126:32)
              at node:internal/modules/cjs/loader:967:12
              at Function._load (node:electron/js2c/asar_bundle:2:13327)
              at Module.require (node:internal/modules/cjs/loader:1150:19)
              at require (node:internal/modules/cjs/helpers:110:18)
              at Object.<anonymous> (/Users/patrickhahn/MM/modules/MMM-MyCalendar/node_helper.js:8:25)
          (Use `Electron --trace-warnings ...` to show where the warning was created)
          [07.10.2023 16:44.38.223] [ERROR] (node:28140) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
          2023-10-07 16:44:38.247 Electron[28140:158548] WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES.
          
          
          
          S 1 Reply Last reply Reply Quote 0
          • S Away
            sdetweil @Stoffbeuteluwe
            last edited by

            @Stoffbeuteluwe your version of node is not good enough You need either 18 or 20

            node -v

            will tell you

            Sam

            How to add modules

            learning how to use browser developers window for css changes

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

              @sdetweil
              I don’t have version 20 either but rather 16.14.2. How can I install version 20? Can you please help me?

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

                @sil3ntstorm you can try the node20_install script

                or you can try with upgrading mm using my upgrade script

                https://github.com/sdetweil/MagicMirror_scripts

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                S StoffbeuteluweS 2 Replies Last reply Reply Quote 1
                • S Offline
                  sil3ntstorm @sdetweil
                  last edited by

                  @sdetweil I installed it, thanks

                  1 Reply Last reply Reply Quote 0
                  • StoffbeuteluweS Offline
                    Stoffbeuteluwe Project Sponsor @sdetweil
                    last edited by

                    @sdetweil Hi thanks for answering, the problem was 3 modules

                    the module

                    MMM-DWD-WarnWeather
                    MMM-Snake
                    MMM-MyCalendar

                    without the modules it works fine and with the modules it doesn’t work and I don’t know wy???

                    anybody an idea??

                    S S 2 Replies Last reply Reply Quote 0
                    • S Away
                      sdetweil @Stoffbeuteluwe
                      last edited by

                      @Stoffbeuteluwe it’s this

                      https://forum.magicmirror.builders/topic/15778/fix-for-black-screen-in-2-16-and-later

                      we removed node-fetch

                      I think
                      MMM-DWD-WarnWeather
                      put out a fix
                      git pull in that module folder and npm install

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      StoffbeuteluweS 1 Reply Last reply Reply Quote 0
                      • S Offline
                        sil3ntstorm @Stoffbeuteluwe
                        last edited by

                        @Stoffbeuteluwe Did you just deactivate the 3 modules in config.js, or did you also delete the 3 folders in the Modules folder? Did you have to do anything else to make it work?

                        S StoffbeuteluweS 2 Replies Last reply Reply Quote 0
                        • S Away
                          sdetweil @sil3ntstorm
                          last edited by

                          @sil3ntstorm we removed some libraries in this release that modules use but don’t document So you have to fix the modules manually by installing the missing libraries.

                          I posted a link to the troubleshooting Post that shows you how to find the library and what to do about it

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

                          1 Reply Last reply Reply Quote 0
                          • 1
                          • 2
                          • 3
                          • 4
                          • 5
                          • 1 / 5
                          • 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