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 13.9k 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 @sdetweil
      last edited by

      @sdetweil

      > magicmirror@2.25.0 start
      > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
      
      [09.10.2023 21:11.47.231] [LOG]   Starting MagicMirror: v2.25.0
      [09.10.2023 21:11.47.231] [LOG]   Loading config ...
      [09.10.2023 21:11.47.232] [DEBUG] config template file not exists, no envsubst
      [09.10.2023 21:11.47.233] [LOG]   Loading module helpers ...
      [09.10.2023 21:11.47.233] [LOG]   No helper found for module: alert.
      [09.10.2023 21:11.47.257] [LOG]   Initializing new module helper ...
      [09.10.2023 21:11.47.257] [LOG]   Module helper loaded: MMM-Remote-Control
      [09.10.2023 21:11.47.258] [LOG]   Initializing new module helper ...
      [09.10.2023 21:11.47.258] [LOG]   Module helper loaded: updatenotification
      [09.10.2023 21:11.47.258] [LOG]   No helper found for module: MMM-Snow.
      [09.10.2023 21:11.47.258] [LOG]   No helper found for module: MMM-MyWordClock.
      [09.10.2023 21:11.47.258] [LOG]   No helper found for module: clock.
      [09.10.2023 21:11.47.258] [LOG]   No helper found for module: calendar_monthly.
      [09.10.2023 21:11.47.275] [LOG]   Initializing new module helper ...
      [09.10.2023 21:11.47.275] [LOG]   Module helper loaded: calendar
      [09.10.2023 21:11.47.276] [ERROR] (node:78446) 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)
      [09.10.2023 21:11.47.276] [ERROR] (node:78446) 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-09 21:11:47.294 Electron[78446:1242307] WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES.
      /Users/patrickhahn/MM/node_modules/electron/dist/Electron.app/Contents/MacOS/Electron exited with signal SIGINT
      
      
      S 1 Reply Last reply Reply Quote 0
      • S Do not disturb
        sdetweil @Stoffbeuteluwe
        last edited by

        @Stoffbeuteluwe said in Update is not working..I need help please:

        Cannot find module ‘fetch’

        yes, and the module doesn’t provide a package.json, so npm install can’t fix it…

        BUT fetch is provided in the base node 18 and 20… SO

        edit the
        /Users/patrickhahn/MM/modules/MMM-MyCalendar/calendarfetcher.js

        and comment out the line (11) , by adding // to the start of the line

        const fetch = require("fetch");
        

        Sam

        How to add modules

        learning how to use browser developers window for css changes

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

          @sdetweil
          i have done this

          /* MagicMirror²
           * Node Helper: Calendar - CalendarFetcher
           *
           * By Michael Teeuw https://michaelteeuw.nl
           * MIT Licensed.
           */
          const CalendarUtils = require("./calendarutils");
          const Log = require("logger");
          const NodeHelper = require("node_helper");
          const ical = require("node-ical");
          //const fetch = require("fetch");
          const digest = require("digest-fetch");
          const https = require("https");
          
          /**
           *
           * @param {string} url The url of the calendar to fetch
           * @param {number} reloadInterval Time in ms the calendar is fetched again
           * @param {string[]} excludedEvents An array of words / phrases from event titles that will be excluded from being shown.
           * @param {number} maximumEntries The maximum number of events fetched.
           * @param {number} maximumNumberOfDays The maximum number of days an event should be in the future.
           * @param {object} auth The object containing options for authentication against the calendar.
           * @param {boolean} includePastEvents If true events from the past maximumNumberOfDays will be fetched too
           * @param {boolean} selfSignedCert If true, the server certificate is not verified against the list of supplied CAs.
           * @class
           */
          

          but it still does not work

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

            @Stoffbeuteluwe you are on the wrong level of code

            neither are there in 2.25

            do

            cd ~/MagicMirror
            git checkout modules/default/calendar/calendarfetcher.js
            

            then

            git status
            

            show the results

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            karsten13K StoffbeuteluweS 2 Replies Last reply Reply Quote 0
            • karsten13K Online
              karsten13 @sdetweil
              last edited by

              @sdetweil

              MMM-MyCalendar is a mess, the author copied (meanwhile old) versions of our code into his repo, so the problem is calendarfetcher.js of the module.

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

                @sdetweil said in Update is not working..I need help please:

                git status

                patrickhahn@Mac-mini MM % git checkout modules/default/calendar/calendarfetcher.js
                Updated 0 paths from the index
                patrickhahn@Mac-mini MM % git status
                On branch master
                Your branch is up to date with 'origin/master'.
                
                Untracked files:
                  (use "git add <file>..." to include in what will be committed)
                	css/icons/
                	new_package.json
                	run-start.sh
                
                nothing added to commit but untracked files present (use "git add" to track)
                patrickhahn@Mac-mini MM % 
                
                S 1 Reply Last reply Reply Quote 0
                • S Do not disturb
                  sdetweil @Stoffbeuteluwe
                  last edited by

                  @Stoffbeuteluwe ok, now do

                  cd ~/MagicMirror
                  git pull
                  npm run install-mm
                  

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

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

                    @sdetweil it is still the same problem…

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

                      @Stoffbeuteluwe can you show me the output of

                      git status
                      git pull
                      

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

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

                        @sdetweil

                        patrickhahn@Mac-mini MM % git status
                        On branch master
                        Your branch is up to date with 'origin/master'.
                        
                        Untracked files:
                          (use "git add <file>..." to include in what will be committed)
                        	css/icons/
                        	new_package.json
                        	run-start.sh
                        
                        nothing added to commit but untracked files present (use "git add" to track)
                        patrickhahn@Mac-mini MM % git pull
                        Already up to date.
                        patrickhahn@Mac-mini MM % patrickhahn@Mac-mini MM % git status
                        On branch master
                        Your branch is up to date with 'origin/master'.
                        
                        Untracked files:
                          (use "git add <file>..." to include in what will be committed)
                                css/icons/
                                new_package.json
                                run-start.sh
                        
                        nothing added to commit but untracked files present (use "git add" to track)
                        patrickhahn@Mac-mini MM % 
                        
                        
                        
                        S 1 Reply Last reply Reply Quote 0
                        • S Do not disturb
                          sdetweil @Stoffbeuteluwe
                          last edited by

                          @Stoffbeuteluwe ok, next, lets check the version of the code, should be 2.25.0

                          cd ~/MagicMirror
                          grep version package.json
                          

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

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

                            @sdetweil

                            Last login: Thu Oct 12 16:43:21 on ttys000
                            patrickhahn@Mac-mini ~ % cd MM
                            patrickhahn@Mac-mini MM % grep version package.json
                            	"version": "2.25.0",
                            patrickhahn@Mac-mini MM % 
                            
                            S 1 Reply Last reply Reply Quote 0
                            • S Do not disturb
                              sdetweil @Stoffbeuteluwe
                              last edited by

                              @Stoffbeuteluwe and

                              node -v, npm -v

                              if node v18 or v20 then

                              cd ~/MagicMirror
                              rm -rf node_modules
                              rm package-lock.json
                              npm run install-mm
                              

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

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

                                @sdetweil
                                I have installed the newest version of node the 20

                                
                                
                                patrickhahn@Mac-mini MM % node-v
                                zsh: command not found: node-v
                                patrickhahn@Mac-mini MM % npm-v
                                zsh: command not found: npm-v
                                patrickhahn@Mac-mini MM % rm -rf node_modules
                                patrickhahn@Mac-mini MM % rm package-lock.json
                                patrickhahn@Mac-mini MM % npm run install-mm
                                
                                > magicmirror@2.25.0 install-mm
                                > npm install --no-audit --no-fund --no-update-notifier --only=prod --omit=dev
                                
                                npm WARN config only Use `--omit=dev` to omit dev dependencies from the install.
                                
                                > magicmirror@2.25.0 postinstall
                                > npm run install-vendor && npm run install-fonts && echo "MagicMirror² installation finished successfully! 
                                > "
                                
                                
                                > magicmirror@2.25.0 install-vendor
                                > echo "Installing vendor files ...
                                > " && cd vendor && npm install --loglevel=error --no-audit --no-fund --no-update-notifier
                                
                                Installing vendor files ...
                                
                                
                                up to date in 106ms
                                
                                > magicmirror@2.25.0 install-fonts
                                > echo "Installing fonts ...
                                > " && cd fonts && npm install --loglevel=error --no-audit --no-fund --no-update-notifier
                                
                                Installing fonts ...
                                
                                
                                up to date in 100ms
                                MagicMirror² installation finished successfully! 
                                
                                
                                > magicmirror@2.25.0 prepare
                                > [ -f node_modules/.bin/husky ] && husky install || echo no husky installed.
                                
                                no husky installed.
                                
                                added 334 packages in 33s
                                patrickhahn@Mac-mini MM % 
                                
                                
                                1 Reply Last reply Reply Quote 0
                                • StoffbeuteluweS Offline
                                  Stoffbeuteluwe Project Sponsor @sdetweil
                                  last edited by

                                  @sdetweil

                                  I think I have to live without MMM-MyCalendar and try the default calendar

                                  without MMM-MyCalender module …the Mirror works fine

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

                                    @Stoffbeuteluwe but u can fix mycalendar

                                    see the output of npm start

                                    it’s likely the node-fetch lib we removed

                                    just add it back.in the module folder
                                    see
                                    https://forum.magicmirror.builders/topic/15778/fix-for-black-screen-in-2-16-and-later

                                    for how to update the module

                                    Sam

                                    How to add modules

                                    learning how to use browser developers window for css changes

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

                                      @sdetweil

                                      i have installed fetch and digest-fetch but it won’t start

                                      Last login: Thu Oct 12 18:10:21 on ttys000
                                      patrickhahn@Mac-mini ~ % cd MM
                                      patrickhahn@Mac-mini MM % npm start
                                      
                                      > magicmirror@2.25.0 start
                                      > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
                                      
                                      [12.10.2023 18:13.01.206] [LOG]   Starting MagicMirror: v2.25.0
                                      [12.10.2023 18:13.01.207] [LOG]   Loading config ...
                                      [12.10.2023 18:13.01.207] [DEBUG] config template file not exists, no envsubst
                                      [12.10.2023 18:13.01.208] [LOG]   Loading module helpers ...
                                      [12.10.2023 18:13.01.208] [LOG]   No helper found for module: alert.
                                      [12.10.2023 18:13.01.232] [LOG]   Initializing new module helper ...
                                      [12.10.2023 18:13.01.233] [LOG]   Module helper loaded: MMM-Remote-Control
                                      [12.10.2023 18:13.01.233] [LOG]   Initializing new module helper ...
                                      [12.10.2023 18:13.01.233] [LOG]   Module helper loaded: updatenotification
                                      [12.10.2023 18:13.01.233] [LOG]   No helper found for module: MMM-Snow.
                                      [12.10.2023 18:13.01.233] [LOG]   No helper found for module: MMM-MyWordClock.
                                      [12.10.2023 18:13.01.233] [LOG]   No helper found for module: clock.
                                      [12.10.2023 18:13.01.233] [LOG]   No helper found for module: calendar_monthly.
                                      [12.10.2023 18:13.01.251] [LOG]   Initializing new module helper ...
                                      [12.10.2023 18:13.01.251] [LOG]   Module helper loaded: calendar
                                      [12.10.2023 18:13.01.252] [ERROR] (node:2102) 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:117576)
                                          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)
                                      [12.10.2023 18:13.01.252] [ERROR] (node:2102) 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-12 18:13:01.270 Electron[2102:3348103] WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES.
                                      ^C/Users/patrickhahn/MM/node_modules/electron/dist/Electron.app/Contents/MacOS/Electron exited with signal SIGINT
                                      patrickhahn@Mac-mini MM % cd modules
                                      patrickhahn@Mac-mini modules % cd MMM-MyCalendar
                                      patrickhahn@Mac-mini MMM-MyCalendar % ls package.json
                                      ls: package.json: No such file or directory
                                      patrickhahn@Mac-mini MMM-MyCalendar % npm init -y
                                      Wrote to /Users/patrickhahn/MM/modules/MMM-MyCalendar/package.json:
                                      
                                      {
                                        "name": "mmm-mycalendar",
                                        "version": "1.0.0",
                                        "description": "This calendar module is functionally the same as the default calendar app, however its presentation is different.",
                                        "main": "MMM-MyCalendar.js",
                                        "scripts": {
                                          "test": "echo \"Error: no test specified\" && exit 1"
                                        },
                                        "keywords": [],
                                        "author": "",
                                        "license": "ISC"
                                      }
                                      
                                      
                                      patrickhahn@Mac-mini MMM-MyCalendar % npm install fetch
                                      
                                      added 6 packages, and audited 7 packages in 2s
                                      
                                      found 0 vulnerabilities
                                      patrickhahn@Mac-mini MMM-MyCalendar % cd 
                                      patrickhahn@Mac-mini ~ % cd MM
                                      patrickhahn@Mac-mini MM % npm start
                                      
                                      > magicmirror@2.25.0 start
                                      > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
                                      
                                      [12.10.2023 18:14.34.291] [LOG]   Starting MagicMirror: v2.25.0
                                      [12.10.2023 18:14.34.292] [LOG]   Loading config ...
                                      [12.10.2023 18:14.34.292] [DEBUG] config template file not exists, no envsubst
                                      [12.10.2023 18:14.34.293] [LOG]   Loading module helpers ...
                                      [12.10.2023 18:14.34.293] [LOG]   No helper found for module: alert.
                                      [12.10.2023 18:14.34.317] [LOG]   Initializing new module helper ...
                                      [12.10.2023 18:14.34.317] [LOG]   Module helper loaded: MMM-Remote-Control
                                      [12.10.2023 18:14.34.318] [LOG]   Initializing new module helper ...
                                      [12.10.2023 18:14.34.318] [LOG]   Module helper loaded: updatenotification
                                      [12.10.2023 18:14.34.318] [LOG]   No helper found for module: MMM-Snow.
                                      [12.10.2023 18:14.34.318] [LOG]   No helper found for module: MMM-MyWordClock.
                                      [12.10.2023 18:14.34.318] [LOG]   No helper found for module: clock.
                                      [12.10.2023 18:14.34.318] [LOG]   No helper found for module: calendar_monthly.
                                      [12.10.2023 18:14.34.336] [LOG]   Initializing new module helper ...
                                      [12.10.2023 18:14.34.336] [LOG]   Module helper loaded: calendar
                                      [12.10.2023 18:14.34.339] [ERROR] (node:2138) UnhandledPromiseRejectionWarning: Error: Cannot find module 'digest-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:117576)
                                          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:12:16)
                                          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)
                                      [12.10.2023 18:14.34.339] [ERROR] (node:2138) 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-12 18:14:34.356 Electron[2138:3349277] WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES.
                                      ^C/Users/patrickhahn/MM/node_modules/electron/dist/Electron.app/Contents/MacOS/Electron exited with signal SIGINT
                                      patrickhahn@Mac-mini MM % cd modules
                                      patrickhahn@Mac-mini modules % cd MMM-MyCalendar
                                      patrickhahn@Mac-mini MMM-MyCalendar % npm init -y
                                      Wrote to /Users/patrickhahn/MM/modules/MMM-MyCalendar/package.json:
                                      
                                      {
                                        "name": "mmm-mycalendar",
                                        "version": "1.0.0",
                                        "description": "This calendar module is functionally the same as the default calendar app, however its presentation is different.",
                                        "main": "MMM-MyCalendar.js",
                                        "scripts": {
                                          "test": "echo \"Error: no test specified\" && exit 1"
                                        },
                                        "keywords": [],
                                        "author": "",
                                        "license": "ISC",
                                        "dependencies": {
                                          "fetch": "^1.1.0"
                                        },
                                        "devDependencies": {}
                                      }
                                      
                                      
                                      patrickhahn@Mac-mini MMM-MyCalendar % npm install digest-fetch
                                      
                                      added 8 packages, and audited 15 packages in 2s
                                      
                                      found 0 vulnerabilities
                                      patrickhahn@Mac-mini MMM-MyCalendar % cd 
                                      patrickhahn@Mac-mini ~ % cd MM
                                      patrickhahn@Mac-mini MM % npm start
                                      
                                      > magicmirror@2.25.0 start
                                      > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
                                      
                                      [12.10.2023 18:16.37.004] [LOG]   Starting MagicMirror: v2.25.0
                                      [12.10.2023 18:16.37.005] [LOG]   Loading config ...
                                      [12.10.2023 18:16.37.005] [DEBUG] config template file not exists, no envsubst
                                      [12.10.2023 18:16.37.006] [LOG]   Loading module helpers ...
                                      [12.10.2023 18:16.37.006] [LOG]   No helper found for module: alert.
                                      [12.10.2023 18:16.37.030] [LOG]   Initializing new module helper ...
                                      [12.10.2023 18:16.37.030] [LOG]   Module helper loaded: MMM-Remote-Control
                                      [12.10.2023 18:16.37.031] [LOG]   Initializing new module helper ...
                                      [12.10.2023 18:16.37.031] [LOG]   Module helper loaded: updatenotification
                                      [12.10.2023 18:16.37.031] [LOG]   No helper found for module: MMM-Snow.
                                      [12.10.2023 18:16.37.031] [LOG]   No helper found for module: MMM-MyWordClock.
                                      [12.10.2023 18:16.37.031] [LOG]   No helper found for module: clock.
                                      [12.10.2023 18:16.37.031] [LOG]   No helper found for module: calendar_monthly.
                                      [12.10.2023 18:16.37.049] [LOG]   Initializing new module helper ...
                                      [12.10.2023 18:16.37.049] [LOG]   Module helper loaded: calendar
                                      [12.10.2023 18:16.37.060] [ERROR] (node:2177) UnhandledPromiseRejectionWarning: Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/patrickhahn/MM/modules/MMM-MyCalendar/node_modules/digest-fetch/digest-fetch-src.js from /Users/patrickhahn/MM/modules/MMM-MyCalendar/calendarfetcher.js not supported.
                                      Instead change the require of digest-fetch-src.js in /Users/patrickhahn/MM/modules/MMM-MyCalendar/calendarfetcher.js to a dynamic import() which is available in all CommonJS modules.
                                          at Function._load (node:electron/js2c/asar_bundle:2:13327)
                                          at Object.<anonymous> (/Users/patrickhahn/MM/modules/MMM-MyCalendar/calendarfetcher.js:12:16)
                                          at Function._load (node:electron/js2c/asar_bundle:2:13327)
                                          at Object.<anonymous> (/Users/patrickhahn/MM/modules/MMM-MyCalendar/node_helper.js:8:25)
                                          at Function._load (node:electron/js2c/asar_bundle:2:13327)
                                          at loadModule (/Users/patrickhahn/MM/js/app.js:180:19)
                                          at loadModules (/Users/patrickhahn/MM/js/app.js:210:10)
                                          at async App.start (/Users/patrickhahn/MM/js/app.js:258:3)
                                      (Use `Electron --trace-warnings ...` to show where the warning was created)
                                      [12.10.2023 18:16.37.060] [ERROR] (node:2177) 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-12 18:16:37.079 Electron[2177:3350680] WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES.
                                      
                                      
                                      
                                      S mumblebajM 2 Replies Last reply Reply Quote 0
                                      • S Do not disturb
                                        sdetweil @Stoffbeuteluwe
                                        last edited by sdetweil

                                        @Stoffbeuteluwe the default digest-fetch expects a different runtime…

                                        they say to do this in the module folder

                                        npm install digest-fetch@v2 node-fetch@v2
                                        

                                        Sam

                                        How to add modules

                                        learning how to use browser developers window for css changes

                                        1 Reply Last reply Reply Quote 0
                                        • mumblebajM Offline
                                          mumblebaj Module Developer @Stoffbeuteluwe
                                          last edited by

                                          @Stoffbeuteluwe Seems like you may have installed the wrong version of digest-fetch. You have a later version than what the module handles looks like to me. Not sure what version the module requires.

                                          Check out my modules at: https://github.com/mumblebaj?tab=repositories
                                          Check my blog-post: https://mumblebaj.xyz/
                                          Check my MM Container: https://hub.docker.com/repository/docker/mumblebaj/magicmirror/general

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

                                            @mumblebaj @sdetweil

                                            Yeah Yeah it works …a big THANK YOU to you
                                            without you guys I wouldn’t have made it:clapping_hands: :grinning_face_with_big_eyes:

                                            S 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
                                            • 3
                                            • 3 / 3
                                            • 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