• 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-Update doesn´t work

Scheduled Pinned Locked Moved Solved Troubleshooting
12 Posts 2 Posters 925 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.
  • K Offline
    kusselin
    last edited by kusselin Jan 14, 2025, 6:23 PM Jan 14, 2025, 6:17 PM

    hi @all,

    what is my problem? i tryd to update my MM but i have errors. Can anyone help me please.

    I read that the engine is not compatible but what must i do now??
    Ahh the node and npm version are not correct but i don´t know how the linux commandline must be?? Can anyone write here the line command for me in puuty to update

    Thanks a lot

    mm@MagicMirror-live:~/MagicMirror$ npm run server
    
    > magicmirror@2.30.0 server
    > node ./serveronly
    
    node:internal/modules/cjs/loader:1051
      throw err;
      ^
    
    Error: Cannot find module 'undici'
    Require stack:
    - /home/mm/MagicMirror/js/app.js
    - /home/mm/MagicMirror/serveronly/index.js
        at Module._resolveFilename (node:internal/modules/cjs/loader:1048:15)
        at Module._resolveFilename (/home/mm/MagicMirror/node_modules/module-alias/index.js:49:29)
        at Module._load (node:internal/modules/cjs/loader:901:27)
        at Module.require (node:internal/modules/cjs/loader:1115:19)
        at require (node:internal/modules/helpers:130:18)
        at Object.<anonymous> (/home/mm/MagicMirror/js/app.js:15:40)
        at Module._compile (node:internal/modules/cjs/loader:1241:14)
        at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
        at Module.load (node:internal/modules/cjs/loader:1091:32)
        at Module._load (node:internal/modules/cjs/loader:938:12)
        at Module.require (node:internal/modules/cjs/loader:1115:19)
        at require (node:internal/modules/helpers:130:18)
        at Object.<anonymous> (/home/mm/MagicMirror/serveronly/index.js:1:13)
        at Module._compile (node:internal/modules/cjs/loader:1241:14)
        at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
        at Module.load (node:internal/modules/cjs/loader:1091:32) {
      code: 'MODULE_NOT_FOUND',
      requireStack: [
        '/home/mm/MagicMirror/js/app.js',
        '/home/mm/MagicMirror/serveronly/index.js'
      ]
    }
    
    Node.js v20.9.0
    

    and

    mm@MagicMirror-live:~/MagicMirror$ git pull && npm run install-mm
    Already up to date.
    
    > magicmirror@2.30.0 install-mm
    > npm install --no-audit --no-fund --no-update-notifier --only=prod --omit=dev
    
    npm ERR! code EBADENGINE
    npm ERR! engine Unsupported engine
    npm ERR! engine Not compatible with your version of node/npm: magicmirror@2.30.0
    npm ERR! notsup Not compatible with your version of node/npm: magicmirror@2.30.0
    npm ERR! notsup Required: {"node":">=20.18.1 <21 || >=22"}
    npm ERR! notsup Actual:   {"npm":"10.1.0","node":"v20.9.0"}
    
    npm ERR! A comp
    
    S 1 Reply Last reply Jan 14, 2025, 6:27 PM Reply Quote 0
    • K Offline
      kusselin @sdetweil
      last edited by Jan 14, 2025, 7:22 PM

      @sdetweil aha ok, I didn’t know that…

      look now… does that fit now?

      mm@MagicMirror-live:~/MagicMirror$ bash -c  "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)" force
      update log will be in /home/mm/MagicMirror/installers/upgrade.log
      doing test run = false
      Node currently installed. Checking version number.
      Minimum Node version: v20.18.1
      Installed Node version: v20.18.1
      Check current Node installation ...
      Node currently installed. Checking version number.
      Minimum Node version: v20.18.1
      Installed Node version: v20.18.1
      No Node.js upgrade necessary.
      Check current NPM installation ...
      NPM currently installed. Checking version number.
      Minimum npm version: V10.8.2
      Installed npm version: V10.8.2
      No npm upgrade necessary.
      
      saving custom.css
      upgrading from version 2.30.0 to 2.30.0
      fetching latest revisions
      updating MagicMirror runtime, please wait
      
      > magicmirror@2.30.0 postinstall
      > npm run install-vendor && npm run install-fonts && echo "MagicMirror² installation finished successfully!
      > "
      
      
      > magicmirror@2.30.0 install-vendor
      > echo "Installing vendor files ...
      > " && cd vendor && npm install --loglevel=error --no-audit --no-fund --no-update-notifier
      
      Installing vendor files ...
      
      
      changed 3 packages in 5s
      
      > magicmirror@2.30.0 install-fonts
      > echo "Installing fonts ...
      > " && cd fonts && npm install --loglevel=error --no-audit --no-fund --no-update-notifier
      
      Installing fonts ...
      
      
      changed 2 packages in 3s
      MagicMirror² installation finished successfully!
      
      
      > magicmirror@2.30.0 prepare
      > [ -f node_modules/.bin/husky ] && husky || echo no husky installed.
      
      no husky installed.
      
      added 479 packages in 47s
      
      126 packages are looking for funding
        run `npm fund` for details
      [sudo] password for mm:
      
      Checking for modules with removed libraries
      
      updating dependencies for active modules with package.json files
      
      
              processing for module MMM-Fuel please wait
      
              ----------------------------------
      
      added 17 packages, and audited 18 packages in 5s
      
      8 packages are looking for funding
        run `npm fund` for details
      
      found 0 vulnerabilities
      
              processing complete for module MMM-Fuel
      
      
              processing for module MMM-RNV please wait
      
              ----------------------------------
      
      added 27 packages, and audited 28 packages in 12s
      
      found 0 vulnerabilities
      
              processing complete for module MMM-RNV
      
      
              processing for module MMM-PublicTransportHafas please wait
      
              ----------------------------------
      
      > mmm-publictransporthafas@3.0.1 prepare
      > [ -f node_modules/.bin/husky ] && husky || echo husky is not installed.
      
      husky is not installed.
      
      added 63 packages, and audited 64 packages in 20s
      
      19 packages are looking for funding
        run `npm fund` for details
      
      found 0 vulnerabilities
      
              processing complete for module MMM-PublicTransportHafas
      
      
              processing for module MMM-ioBroker please wait
      
              ----------------------------------
      
      added 6 packages, and audited 7 packages in 2s
      
      1 package is looking for funding
        run `npm fund` for details
      
      found 0 vulnerabilities
      
              processing complete for module MMM-ioBroker
      
      
              processing for module MMM-COVID19-AMPEL please wait
      
              ----------------------------------
      
      added 12 packages, and audited 13 packages in 2s
      
      found 0 vulnerabilities
      
              processing complete for module MMM-COVID19-AMPEL
      
      
              processing for module MMM-Carousel please wait
      
              ----------------------------------
      
      up to date, audited 1 package in 993ms
      
      found 0 vulnerabilities
      
              processing complete for module MMM-Carousel
      
      
              processing for module MMM-Remote-Control please wait
      
              ----------------------------------
      npm warn deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
      
      added 54 packages, and audited 55 packages in 6s
      
      12 packages are looking for funding
        run `npm fund` for details
      
      found 0 vulnerabilities
      
              processing complete for module MMM-Remote-Control
      
      restoring custom.css
      
      S 1 Reply Last reply Jan 14, 2025, 7:24 PM Reply Quote 0
      • S Away
        sdetweil @kusselin
        last edited by Jan 14, 2025, 6:27 PM

        @kusselin yes, you need a newer node version for this release as documented in the release notes and the published release page here

        if you had used my upgrade script it would have fixed this

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        K 1 Reply Last reply Jan 14, 2025, 6:30 PM Reply Quote 0
        • K Offline
          kusselin @sdetweil
          last edited by kusselin Jan 14, 2025, 6:42 PM Jan 14, 2025, 6:30 PM

          @sdetweil said in MM-Update doesn´t work:

          @kusselin yes, you need a newer node version for this release as documented in the release notes and the published release page here

          if you had used my upgrade script it would have fixed this

          Hi thanks, is this this script

          bash -c “$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)”

          or this

          bash -c “$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/raspberry.sh)”

          look please:

          mm@MagicMirror-live:~/MagicMirror$ bash -c  "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)" apply
          update log will be in /home/mm/MagicMirror/installers/upgrade.log
          doing test run = false
          Node currently installed. Checking version number.
          Minimum Node version: v20.18.1
          Installed Node version: v20.9.0
          installing correct version of node and npm, please wait
          [sudo] password for mm:
          Check current Node installation ...
          Node currently installed. Checking version number.
          Minimum Node version: v20.18.1
          Installed Node version: v20.18.1
          No Node.js upgrade necessary.
          Check current NPM installation ...
          NPM currently installed. Checking version number.
          Minimum npm version: V10.8.2
          Installed npm version: V10.8.2
          No npm upgrade necessary.
          
          saving custom.css
          local version 2.30.0 already same as master 2.30.0
          restoring custom.css
          mm@MagicMirror-live:~/MagicMirror$ npm start server
          
          > magicmirror@2.30.0 start
          > npm run start:x11 server
          
          
          > magicmirror@2.30.0 start:x11
          > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js server
          
          /home/mm/MagicMirror/node_modules/electron/dist/electron: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory
          
          S 2 Replies Last reply Jan 14, 2025, 6:56 PM Reply Quote 0
          • S Away
            sdetweil @kusselin
            last edited by sdetweil Jan 18, 2025, 11:44 PM Jan 14, 2025, 6:56 PM

            @kusselin raspberry is install new

            upgrade is upgrade w

            apply
            

            as a parameter

            without parameter it does a check but makes no changes

            anyhow, looks like electron has a new dependency, 1st I’ve seen that

            that would take some apt command to install

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • S Away
              sdetweil @kusselin
              last edited by sdetweil Jan 14, 2025, 7:00 PM Jan 14, 2025, 6:58 PM

              @kusselin also apply wont install over same version, you have to use

              force
              

              instead

              i wont let you mess up your system accidentally

              because we aborted before doing the
              npm install, that still isnt done

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              K 1 Reply Last reply Jan 14, 2025, 7:04 PM Reply Quote 0
              • K Offline
                kusselin @sdetweil
                last edited by kusselin Jan 14, 2025, 7:04 PM Jan 14, 2025, 7:04 PM

                @sdetweil Hi Sam, I have not installed MM on the Raspi but in a Proxmox container Ubuntu 24…

                Sorry, but I don’t understand anything anymore…

                Can you please tell me step by step what I have to enter ?

                Thank you very much

                mm@MagicMirror-live:~/MagicMirror$ force
                Command 'force' not found, did you mean:
                  command 'zforce' from deb gzip (1.12-1ubuntu1)
                  command 'forge' from deb snap (2013-11-29-11)
                Try: sudo apt install <deb name>
                
                
                S 1 Reply Last reply Jan 14, 2025, 7:10 PM Reply Quote 0
                • S Away
                  sdetweil @kusselin
                  last edited by sdetweil Jan 14, 2025, 7:11 PM Jan 14, 2025, 7:10 PM

                  @kusselin proxmox is same as on pi. (i use vmware workststion)

                  run the upgrade script again
                  and replace the parm

                  apply
                  

                  with

                  force
                  

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  K 1 Reply Last reply Jan 14, 2025, 7:22 PM Reply Quote 0
                  • K Offline
                    kusselin @sdetweil
                    last edited by Jan 14, 2025, 7:22 PM

                    @sdetweil aha ok, I didn’t know that…

                    look now… does that fit now?

                    mm@MagicMirror-live:~/MagicMirror$ bash -c  "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)" force
                    update log will be in /home/mm/MagicMirror/installers/upgrade.log
                    doing test run = false
                    Node currently installed. Checking version number.
                    Minimum Node version: v20.18.1
                    Installed Node version: v20.18.1
                    Check current Node installation ...
                    Node currently installed. Checking version number.
                    Minimum Node version: v20.18.1
                    Installed Node version: v20.18.1
                    No Node.js upgrade necessary.
                    Check current NPM installation ...
                    NPM currently installed. Checking version number.
                    Minimum npm version: V10.8.2
                    Installed npm version: V10.8.2
                    No npm upgrade necessary.
                    
                    saving custom.css
                    upgrading from version 2.30.0 to 2.30.0
                    fetching latest revisions
                    updating MagicMirror runtime, please wait
                    
                    > magicmirror@2.30.0 postinstall
                    > npm run install-vendor && npm run install-fonts && echo "MagicMirror² installation finished successfully!
                    > "
                    
                    
                    > magicmirror@2.30.0 install-vendor
                    > echo "Installing vendor files ...
                    > " && cd vendor && npm install --loglevel=error --no-audit --no-fund --no-update-notifier
                    
                    Installing vendor files ...
                    
                    
                    changed 3 packages in 5s
                    
                    > magicmirror@2.30.0 install-fonts
                    > echo "Installing fonts ...
                    > " && cd fonts && npm install --loglevel=error --no-audit --no-fund --no-update-notifier
                    
                    Installing fonts ...
                    
                    
                    changed 2 packages in 3s
                    MagicMirror² installation finished successfully!
                    
                    
                    > magicmirror@2.30.0 prepare
                    > [ -f node_modules/.bin/husky ] && husky || echo no husky installed.
                    
                    no husky installed.
                    
                    added 479 packages in 47s
                    
                    126 packages are looking for funding
                      run `npm fund` for details
                    [sudo] password for mm:
                    
                    Checking for modules with removed libraries
                    
                    updating dependencies for active modules with package.json files
                    
                    
                            processing for module MMM-Fuel please wait
                    
                            ----------------------------------
                    
                    added 17 packages, and audited 18 packages in 5s
                    
                    8 packages are looking for funding
                      run `npm fund` for details
                    
                    found 0 vulnerabilities
                    
                            processing complete for module MMM-Fuel
                    
                    
                            processing for module MMM-RNV please wait
                    
                            ----------------------------------
                    
                    added 27 packages, and audited 28 packages in 12s
                    
                    found 0 vulnerabilities
                    
                            processing complete for module MMM-RNV
                    
                    
                            processing for module MMM-PublicTransportHafas please wait
                    
                            ----------------------------------
                    
                    > mmm-publictransporthafas@3.0.1 prepare
                    > [ -f node_modules/.bin/husky ] && husky || echo husky is not installed.
                    
                    husky is not installed.
                    
                    added 63 packages, and audited 64 packages in 20s
                    
                    19 packages are looking for funding
                      run `npm fund` for details
                    
                    found 0 vulnerabilities
                    
                            processing complete for module MMM-PublicTransportHafas
                    
                    
                            processing for module MMM-ioBroker please wait
                    
                            ----------------------------------
                    
                    added 6 packages, and audited 7 packages in 2s
                    
                    1 package is looking for funding
                      run `npm fund` for details
                    
                    found 0 vulnerabilities
                    
                            processing complete for module MMM-ioBroker
                    
                    
                            processing for module MMM-COVID19-AMPEL please wait
                    
                            ----------------------------------
                    
                    added 12 packages, and audited 13 packages in 2s
                    
                    found 0 vulnerabilities
                    
                            processing complete for module MMM-COVID19-AMPEL
                    
                    
                            processing for module MMM-Carousel please wait
                    
                            ----------------------------------
                    
                    up to date, audited 1 package in 993ms
                    
                    found 0 vulnerabilities
                    
                            processing complete for module MMM-Carousel
                    
                    
                            processing for module MMM-Remote-Control please wait
                    
                            ----------------------------------
                    npm warn deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
                    
                    added 54 packages, and audited 55 packages in 6s
                    
                    12 packages are looking for funding
                      run `npm fund` for details
                    
                    found 0 vulnerabilities
                    
                            processing complete for module MMM-Remote-Control
                    
                    restoring custom.css
                    
                    S 1 Reply Last reply Jan 14, 2025, 7:24 PM Reply Quote 0
                    • S Away
                      sdetweil @kusselin
                      last edited by Jan 14, 2025, 7:24 PM

                      @kusselin now it should start. unless that library is still a problem

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      K 1 Reply Last reply Jan 14, 2025, 7:25 PM Reply Quote 0
                      • K Offline
                        kusselin @sdetweil
                        last edited by kusselin Jan 14, 2025, 7:29 PM Jan 14, 2025, 7:25 PM

                        @sdetweil you are once again my KING

                        it runs after entering npm run server

                        one question…what is a fetcher??

                        [2025-01-14 19:24:04.725] [LOG]   Create new newsfetcher for url: https://www.n-tv.de/rss - Interval:                            300000
                        [2025-01-14 19:24:04.734] [LOG]   Create new newsfetcher for url: http://www.tagesschau.de/xml/rss2 -
                        

                        …and does this mean that the next time I update, I should always replace the script with apply by -force correctly?

                        S 1 Reply Last reply Jan 14, 2025, 7:35 PM Reply Quote 1
                        • 1
                        • 2
                        • 1 / 2
                        1 / 2
                        • First post
                          1/12
                          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