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.

    v2.18.0 update gave black screen, then nothing.

    Scheduled Pinned Locked Moved Solved Troubleshooting
    73 Posts 4 Posters 32.5k Views 4 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 Do not disturb
      sdetweil @mumblebaj
      last edited by sdetweil

      @mumblebaj why my install script does npm install --only=prod
      to remove the dev dependencies

      Sam

      How to add modules

      learning how to use browser developers window for css changes

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

        @sdetweil :thumbs_up:

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

        R 1 Reply Last reply Reply Quote 0
        • R Offline
          Richard238 @mumblebaj
          last edited by

          What are “dev dependencies” to the uninitiated?

          S R 2 Replies Last reply Reply Quote 0
          • S Do not disturb
            sdetweil @Richard238
            last edited by sdetweil

            @richard238 there are dependencies

            things needed to RUN

            and dev dependencies,

            things needed to DEVELOP for existing or new function

            things like syntax checkers, format checkers, test cases, … 99% of users don’t need that stuff on their disc

            in the package.json are two lists of dependencies
            “devDependencies”: {
            “dependencies”: {

            unless u specify only runtime (production) , you get both …

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • R Offline
              Richard238 @Richard238
              last edited by

              Still no MM though. Status says online, but it’s not launching MM.
              I’ll reboot, because, why not…

              pi@magicmirror:~/MagicMirror $ pm2 start MagicMirror
              [PM2] Applying action restartProcessId on app [MagicMirror](ids: [ 0 ])
              [PM2] [MagicMirror](0) ✓
              [PM2] Process successfully started
              ┌────┬────────────────────┬──────────┬──────┬───────────┬──────────┬──────────┐
              │ id │ name               │ mode     │ ↺    │ status    │ cpu      │ memory   │
              ├────┼────────────────────┼──────────┼──────┼───────────┼──────────┼──────────┤
              │ 0  │ MagicMirror        │ fork     │ 0    │ online    │ 0%       │ 2.6mb    │
              └────┴────────────────────┴──────────┴──────┴───────────┴──────────┴──────────┘
              pi@magicmirror:~/MagicMirror $ 
              
              
              S 1 Reply Last reply Reply Quote 0
              • S Do not disturb
                sdetweil @Richard238
                last edited by

                @richard238 no reboot…

                just pm2 stop 0
                pm2 flush
                pm2 start 0

                then pm2 logs --line=50

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                R 1 Reply Last reply Reply Quote 0
                • R Offline
                  Richard238 @sdetweil
                  last edited by

                  @sdetweil

                  pi@magicmirror:~/MagicMirror $ pm2 stop 0
                  [PM2] Applying action stopProcessId on app [0](ids: [ '0' ])
                  [PM2] [MagicMirror](0) ✓
                  ┌────┬────────────────────┬──────────┬──────┬───────────┬──────────┬──────────┐
                  │ id │ name               │ mode     │ ↺    │ status    │ cpu      │ memory   │
                  ├────┼────────────────────┼──────────┼──────┼───────────┼──────────┼──────────┤
                  │ 0  │ MagicMirror        │ fork     │ 0    │ stopped   │ 0%       │ 0b       │
                  └────┴────────────────────┴──────────┴──────┴───────────┴──────────┴──────────┘
                  pi@magicmirror:~/MagicMirror $ pm2 flush
                  [PM2] Flushing /home/pi/.pm2/pm2.log
                  [PM2] Flushing:
                  [PM2] /home/pi/.pm2/logs/MagicMirror-out.log
                  [PM2] /home/pi/.pm2/logs/MagicMirror-error.log
                  [PM2] Logs flushed
                  pi@magicmirror:~/MagicMirror $ pm2 start 0
                  [PM2] Applying action restartProcessId on app [0](ids: [ '0' ])
                  [PM2] [MagicMirror](0) ✓
                  [PM2] Process successfully started
                  ┌────┬────────────────────┬──────────┬──────┬───────────┬──────────┬──────────┐
                  │ id │ name               │ mode     │ ↺    │ status    │ cpu      │ memory   │
                  ├────┼────────────────────┼──────────┼──────┼───────────┼──────────┼──────────┤
                  │ 0  │ MagicMirror        │ fork     │ 0    │ online    │ 0%       │ 2.4mb    │
                  └────┴────────────────────┴──────────┴──────┴───────────┴──────────┴──────────┘
                  
                  
                  
                  pi@magicmirror:~/MagicMirror $ pm2 logs --lines=50
                  [TAILING] Tailing last 50 lines for [all] processes (change the value with --lines option)
                  /home/pi/.pm2/pm2.log last 50 lines:
                  PM2        | 2022-01-06T14:24:56: PM2 log: App [MagicMirror:0] starting in -fork mode-
                  PM2        | 2022-01-06T14:24:56: PM2 log: App [MagicMirror:0] online
                  
                  /home/pi/.pm2/logs/MagicMirror-out.log last 50 lines:
                  0|MagicMir | 
                  0|MagicMir | > magicmirror@2.18.0 start
                  0|MagicMir | > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
                  0|MagicMir | 
                  
                  /home/pi/.pm2/logs/MagicMirror-error.log last 50 lines:
                  0|MagicMir | App threw an error during load
                  0|MagicMir | TypeError: Log.log is not a function
                  0|MagicMir |     at Object.<anonymous> (/home/pi/MagicMirror/js/app.js:20:5)
                  0|MagicMir |     at Module._compile (node:internal/modules/cjs/loader:1116:14)
                  0|MagicMir |     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1169:10)
                  0|MagicMir |     at Module.load (node:internal/modules/cjs/loader:988:32)
                  0|MagicMir |     at Module._load (node:internal/modules/cjs/loader:829:12)
                  0|MagicMir |     at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
                  0|MagicMir |     at Module.require (node:internal/modules/cjs/loader:1012:19)
                  0|MagicMir |     at require (node:internal/modules/cjs/helpers:94:18)
                  0|MagicMir |     at Object.<anonymous> (/home/pi/MagicMirror/js/electron.js:4:14)
                  0|MagicMir |     at Module._compile (node:internal/modules/cjs/loader:1116:14)
                  0|MagicMir | (node:12755) [DEP0025] DeprecationWarning: sys is deprecated. Use util instead.
                  0|MagicMir | (Use `electron --trace-deprecation ...` to show where the warning was created)
                  0|MagicMir | A JavaScript error occurred in the main process
                  0|MagicMir | Uncaught Exception:
                  0|MagicMir | TypeError: Log.log is not a function
                  0|MagicMir |     at Object.<anonymous> (/home/pi/MagicMirror/js/app.js:20:5)
                  0|MagicMir |     at Module._compile (node:internal/modules/cjs/loader:1116:14)
                  0|MagicMir |     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1169:10)
                  0|MagicMir |     at Module.load (node:internal/modules/cjs/loader:988:32)
                  0|MagicMir |     at Module._load (node:internal/modules/cjs/loader:829:12)
                  0|MagicMir |     at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
                  0|MagicMir |     at Module.require (node:internal/modules/cjs/loader:1012:19)
                  0|MagicMir |     at require (node:internal/modules/cjs/helpers:94:18)
                  0|MagicMir |     at Object.<anonymous> (/home/pi/MagicMirror/js/electron.js:4:14)
                  0|MagicMir |     at Module._compile (node:internal/modules/cjs/loader:1116:14)
                  0|MagicMir | [12789:0106/142502.942799:ERROR:viz_main_impl.cc(161)] Exiting GPU process due to errors during initialization
                  0|MagicMir | [12805:0106/142503.366582:ERROR:sandbox_linux.cc(376)] InitializeSandbox() called with multiple threads in process gpu-process.
                  
                  
                  
                  
                  
                  S 1 Reply Last reply Reply Quote 0
                  • S Do not disturb
                    sdetweil @Richard238
                    last edited by

                    @richard238 ok, do

                    cd ~/MagicMirror
                    rm -rf node_modules
                    rm package-lock.json
                    npm install --only=prod
                    

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    R 1 Reply Last reply Reply Quote 0
                    • R Offline
                      Richard238 @sdetweil
                      last edited by

                      @sdetweil

                      pi@magicmirror:~/MagicMirror $ rm -rf node_modules
                      pi@magicmirror:~/MagicMirror $ rm package-lock.json
                      pi@magicmirror:~/MagicMirror $ npm install --only=prod
                      
                      > magicmirror@2.18.0 install
                      > echo "Installing vendor files ...
                      > " && cd vendor && npm install --loglevel=error
                      
                      Installing vendor files ...
                      
                      
                      up to date, audited 10 packages in 4s
                      
                      found 0 vulnerabilities
                      
                      > magicmirror@2.18.0 postinstall
                      > npm run install-fonts && echo "MagicMirror installation finished successfully! 
                      > "
                      
                      
                      > magicmirror@2.18.0 install-fonts
                      > echo "Installing fonts ...
                      > " && cd fonts && npm install --loglevel=error
                      
                      Installing fonts ...
                      
                      
                      up to date, audited 2 packages in 13s
                      
                      found 0 vulnerabilities
                      MagicMirror installation finished successfully! 
                      
                      
                      > magicmirror@2.18.0 prepare
                      > [ -f node_modules/.bin/husky ] && husky install || echo no husky installed.
                      
                      no husky installed.
                      
                      added 267 packages, and audited 268 packages in 6m
                      
                      19 packages are looking for funding
                        run `npm fund` for details
                      
                      found 0 vulnerabilities
                      pi@magicmirror:~/MagicMirror $ 
                      
                      
                      S 1 Reply Last reply Reply Quote 0
                      • S Do not disturb
                        sdetweil @Richard238
                        last edited by

                        @richard238 and try to run mm again

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

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