• 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.

Upgrade errors?

Scheduled Pinned Locked Moved Solved Troubleshooting
35 Posts 9 Posters 7.0k Views 10 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.
  • B Offline
    BKeyport Module Developer @sdetweil
    last edited by Oct 2, 2023, 4:47 AM

    @sdetweil It appears node and/or NPM is the problem - some of their newer dependencies aren’t compatible with older Raspbian installs, which will make it impossible for me to run what I want on the mirror.

    Losing OMXPlayer murders my setup - so I’m working on something else.

    The "E" in "Javascript" stands for "Easy"

    S 2 Replies Last reply Oct 2, 2023, 12:37 PM Reply Quote 0
    • S Offline
      sdetweil @BKeyport
      last edited by Oct 2, 2023, 12:37 PM

      @BKeyport yeh, looks like buster/legacy is too down level for node 20. let’s try 18

      sudo npm  i n
      sudo n i 18
      

      node -v should show node 18

      then

      cd ~/MagicMirror
      rm -rf node_modules
      npm  run install-mm
      

      please advise

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      C 1 Reply Last reply Oct 2, 2023, 12:56 PM Reply Quote 0
      • C Offline
        croc_dad72 @sdetweil
        last edited by Oct 2, 2023, 12:56 PM

        @sdetweil said in Upgrade errors?:

        cd ~/MagicMirror
        rm -rf node_modules
        npm run install-mm

        The update seem to have crashed my Mirror, I applied these fixes but nothing will run here is my start up logs, what am I missing? Any help would be much appreciated! Thanks.

        macserver@EDITHs-MacBook-Pro MagicMirror % npm run server
        
        > magicmirror@2.25.0 server
        > node ./serveronly
        
        [02.10.2023 07:51.49.432] [LOG]   Starting MagicMirror: v2.25.0
        [02.10.2023 07:51.49.436] [LOG]   Loading config ...
        [02.10.2023 07:51.49.438] [DEBUG] config template file not exists, no envsubst
        [02.10.2023 07:51.49.442] [LOG]   Loading module helpers ...
        [02.10.2023 07:51.49.443] [LOG]   No helper found for module: alert.
        [02.10.2023 07:51.49.449] [LOG]   Initializing new module helper ...
        [02.10.2023 07:51.49.450] [LOG]   Module helper loaded: updatenotification
        [02.10.2023 07:51.49.451] [LOG]   No helper found for module: clock.
        [02.10.2023 07:51.49.676] [LOG]   Initializing new module helper ...
        [02.10.2023 07:51.49.676] [LOG]   Module helper loaded: MMM-quote-of-the-day
        [02.10.2023 07:51.49.765] [ERROR] Whoops! There was an uncaught exception...
        [02.10.2023 07:51.49.770] [ERROR] Error: Cannot find module 'fetch'
        Require stack:
        - /Users/macserver/MagicMirror/modules/MMM-MyCalendar/calendarfetcher.js
        - /Users/macserver/MagicMirror/modules/MMM-MyCalendar/node_helper.js
        - /Users/macserver/MagicMirror/js/app.js
        - /Users/macserver/MagicMirror/serveronly/index.js
            at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15)
            at Module._resolveFilename (/Users/macserver/MagicMirror/node_modules/module-alias/index.js:49:29)
            at Module._load (node:internal/modules/cjs/loader:920:27)
            at Module.require (node:internal/modules/cjs/loader:1141:19)
            at require (node:internal/modules/cjs/helpers:110:18)
            at Object.<anonymous> (/Users/macserver/MagicMirror/modules/MMM-MyCalendar/calendarfetcher.js:11:15)
            at Module._compile (node:internal/modules/cjs/loader:1254:14)
            at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
            at Module.load (node:internal/modules/cjs/loader:1117:32)
            at Module._load (node:internal/modules/cjs/loader:958:12)
            at Module.require (node:internal/modules/cjs/loader:1141:19)
            at require (node:internal/modules/cjs/helpers:110:18)
            at Object.<anonymous> (/Users/macserver/MagicMirror/modules/MMM-MyCalendar/node_helper.js:8:25)
            at Module._compile (node:internal/modules/cjs/loader:1254:14)
            at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
            at Module.load (node:internal/modules/cjs/loader:1117:32) {
          code: 'MODULE_NOT_FOUND',
          requireStack: [
            '/Users/macserver/MagicMirror/modules/MMM-MyCalendar/calendarfetcher.js',
            '/Users/macserver/MagicMirror/modules/MMM-MyCalendar/node_helper.js',
            '/Users/macserver/MagicMirror/js/app.js',
            '/Users/macserver/MagicMirror/serveronly/index.js'
          ]
        }
        [02.10.2023 07:51.49.771] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
        [02.10.2023 07:51.49.771] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
        macserver@EDITHs-MacBook-Pro MagicMirror % 
        
        
        S K 2 Replies Last reply Oct 2, 2023, 1:59 PM Reply Quote 0
        • S Offline
          sdetweil @croc_dad72
          last edited by Oct 2, 2023, 1:59 PM

          @croc_dad72 said in Upgrade errors?:

          Error: Cannot find module ‘fetch’

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

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          C 1 Reply Last reply Oct 2, 2023, 11:46 PM Reply Quote 0
          • S Offline
            sdetweil @BKeyport
            last edited by Oct 2, 2023, 2:05 PM

            @BKeyport also try the new temp node20 install script, listed at the top of my scripts page

            https://github.com/sdetweil/MagicMirror_scripts

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • K Offline
              karsten13 @croc_dad72
              last edited by Oct 2, 2023, 3:06 PM

              @croc_dad72

              looks like you are on deprecated node version, run node -v which must be >= v18

              M 1 Reply Last reply Oct 2, 2023, 4:19 PM Reply Quote 0
              • M Offline
                mumblebaj Module Developer @karsten13
                last edited by Oct 2, 2023, 4:19 PM

                @karsten13 Upgrade just broke my dev machine. :-) Guess I am not upgrading my mirror. Had to wipe my whole WSL Ubuntu install. Have to start from scratch with my dev machine. Not a great upgrade. My prod mirror is still a PI 3B running buster. :confounded_face:

                Check out my modules at: https://github.com/mumblebaj?tab=repositories

                S 1 Reply Last reply Oct 2, 2023, 4:38 PM Reply Quote 0
                • S Offline
                  sdetweil @mumblebaj
                  last edited by Oct 2, 2023, 4:38 PM

                  @mumblebaj buster is broken… do NOT upgrade buster machines…

                  lsb_release -a

                  to see what you have

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  M 1 Reply Last reply Oct 2, 2023, 5:17 PM Reply Quote 1
                  • M Offline
                    mumblebaj Module Developer @sdetweil
                    last edited by Oct 2, 2023, 5:17 PM

                    @sdetweil Thanks Sam. I already broke my dev machine. How do I clean install 2.24.0?

                    Check out my modules at: https://github.com/mumblebaj?tab=repositories

                    S 1 Reply Last reply Oct 2, 2023, 6:51 PM Reply Quote 0
                    • S Offline
                      sdetweil @mumblebaj
                      last edited by Oct 2, 2023, 6:51 PM

                      @mumblebaj try the upgrade script again, with force instead of apply

                      it will remove and and add the right version the right way, including on buster

                      please advise your results…

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      B 1 Reply Last reply Oct 2, 2023, 10:50 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 2 / 4
                      2 / 4
                      • First post
                        8/35
                        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