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

After update 2.23.0 crash

Scheduled Pinned Locked Moved Bug Hunt
56 Posts 9 Posters 15.9k Views 8 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.
  • S Away
    sdetweil @JerryP
    last edited by Apr 4, 2023, 8:22 PM

    @JerryP how did you update?

    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 @JerryP
      last edited by Apr 4, 2023, 8:23 PM

      @JerryP said in After update 2.23.0 crash:

      magicmirror@2.22.0 start

      should be 2.23

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      J 2 Replies Last reply Apr 4, 2023, 8:29 PM Reply Quote 0
      • J Offline
        JerryP @sdetweil
        last edited by Apr 4, 2023, 8:29 PM

        @sdetweil

        pi@raspberrypi:~/MagicMirror $ sudo git pull
        
        
        S 2 Replies Last reply Apr 4, 2023, 8:29 PM Reply Quote 0
        • S Away
          sdetweil @JerryP
          last edited by sdetweil Apr 4, 2023, 8:31 PM Apr 4, 2023, 8:29 PM

          @JerryP AND then npm install after, yes??

          the doc says

          git pull && npm run install-mm
          

          you don’t use my upgrade script?

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • J Offline
            JerryP @sdetweil
            last edited by Apr 4, 2023, 8:31 PM

            @sdetweil ```
            pi@raspberrypi:~/MagicMirror $ npm start

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

            App threw an error during load
            Error: Cannot find module ‘envsub’
            Require stack:

            • /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
            • at Module._resolveFilename (node:internal/modules/cjs/loader:963:15)
              at n._resolveFilename (node:electron/js2c/browser_init:2:109416)
              at Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
              at Module._load (node:internal/modules/cjs/loader:811:27)
              at f._load (node:electron/js2c/asar_bundle:2:13328)
              at Module.require (node:internal/modules/cjs/loader:1035:19)
              at require (node:internal/modules/cjs/helpers:102:18)
              at Object. (/home/pi/MagicMirror/js/app.js:13:16)
              at Module._compile (node:internal/modules/cjs/loader:1141:14)
              at Module._extensions…js (node:internal/modules/cjs/loader:1196:10)
              A JavaScript error occurred in the main process
              Uncaught Exception:
              Error: Cannot find module ‘envsub’
              Require stack:
            • /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
            • at Module._resolveFilename (node:internal/modules/cjs/loader:963:15)
              at n._resolveFilename (node:electron/js2c/browser_init:2:109416)
              at Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
              at Module._load (node:internal/modules/cjs/loader:811:27)
              at f._load (node:electron/js2c/asar_bundle:2:13328)
              at Module.require (node:internal/modules/cjs/loader:1035:19)
              at require (node:internal/modules/cjs/helpers:102:18)
              at Object. (/home/pi/MagicMirror/js/app.js:13:16)
              at Module._compile (node:internal/modules/cjs/loader:1141:14)
              at Module._extensions…js (node:internal/modules/cjs/loader:1196:10)
              MESA-LOADER: failed to retrieve device information
              MESA-LOADER: failed to retrieve device information
              MESA-LOADER: failed to retrieve device information
              MESA-LOADER: failed to open kms_swrast (search paths /usr/lib/arm-linux-gnueabihf/dri:$${ORIGIN}/dri:/usr/lib/dri)
              failed to load driver: kms_swrast
              MESA-LOADER: failed to open swrast (search paths /usr/lib/arm-linux-gnueabihf/dri:$${ORIGIN}/dri:/usr/lib/dri)
              failed to load swrast driver
            S 1 Reply Last reply Apr 4, 2023, 8:32 PM Reply Quote 0
            • S Away
              sdetweil @JerryP
              last edited by Apr 4, 2023, 8:32 PM

              @JerryP do

              npm install 
              

              we’ve updated a bunch of dependencies for this release, you have to install them

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              S J 2 Replies Last reply Apr 4, 2023, 8:34 PM Reply Quote 0
              • S Offline
                swvalenti Project Sponsor @sdetweil
                last edited by Apr 4, 2023, 8:34 PM

                Don’t want to hijack but didn’t want to create another thread. MM doesn’t run after upgrade with this error. I think it is related to MMM-PGA module but not sure what changed as dev window won’t run either.

                [04.04.2023 16:29.46.158] [ERROR] (node:11188) UnhandledPromiseRejectionWarning: Error: Cannot find module 'jsdom'
                Require stack:
                
                S 1 Reply Last reply Apr 4, 2023, 8:40 PM Reply Quote 0
                • J Offline
                  JerryP @sdetweil
                  last edited by Apr 4, 2023, 8:39 PM

                  @sdetweil ```
                  Already up to date.

                  magicmirror@2.23.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.
                  npm ERR! code EACCES
                  npm ERR! syscall open
                  npm ERR! path /home/pi/MagicMirror/package-lock.json
                  npm ERR! errno -13
                  npm ERR! Error: EACCES: permission denied, open ‘/home/pi/MagicMirror/package-lock.json’
                  npm ERR! [Error: EACCES: permission denied, open ‘/home/pi/MagicMirror/package-lock.json’] {
                  npm ERR! errno: -13,
                  npm ERR! code: ‘EACCES’,
                  npm ERR! syscall: ‘open’,
                  npm ERR! path: ‘/home/pi/MagicMirror/package-lock.json’
                  npm ERR! }
                  npm ERR!
                  npm ERR! The operation was rejected by your operating system.
                  npm ERR! It is likely you do not have the permissions to access this file as the current user
                  npm ERR!
                  npm ERR! If you believe this might be a permissions issue, please double-check the
                  npm ERR! permissions of the file and its containing directories, or try running
                  npm ERR! the command again as root/Administrator.

                  npm ERR! A complete log of this run can be found in:
                  npm ERR! /home/pi/.npm/_logs/2023-04-04T20_38_11_536Z-debug-0.log

                  S M 2 Replies Last reply Apr 4, 2023, 8:42 PM Reply Quote 0
                  • S Away
                    sdetweil @swvalenti
                    last edited by Apr 4, 2023, 8:40 PM

                    @swvalenti yes, there is no package.json describing the dependencies…

                    some of the local add on scripts use request and jsdom and others…

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    S 1 Reply Last reply Apr 4, 2023, 8:42 PM Reply Quote 0
                    • S Away
                      sdetweil @JerryP
                      last edited by Apr 4, 2023, 8:42 PM

                      @JerryP said in After update 2.23.0 crash:

                      /home/pi/MagicMirror/package-lock.json

                      erase that file… seems u might have used sudo at some time before …

                      sudo rm /home/pi/MagicMirror/package-lock.json

                      then npm install again

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      J 1 Reply Last reply Apr 4, 2023, 8:43 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 6
                      • 1 / 6
                      1 / 6
                      • First post
                        6/56
                        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