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

MagicMirror no longer launches

Scheduled Pinned Locked Moved Unsolved Troubleshooting
38 Posts 4 Posters 4.1k Views 3 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 @RIKKO14
    last edited by Apr 26, 2024, 4:33 PM

    @RIKKO14 said in MagicMirror no longer launches:

    ‘ansis’

    npm install ansis

    and try again

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    R 1 Reply Last reply Apr 26, 2024, 4:38 PM Reply Quote 0
    • R Offline
      RIKKO14 @sdetweil
      last edited by Apr 26, 2024, 4:38 PM

      @sdetweil

      pi@raspberrypi:~ $ npm install ansis
      
      up to date, audited 2 packages in 1s
      
      found 0 vulnerabilities
      pi@raspberrypi:~ $ pm2 stop all
      cd ~/MagicMirror 
      npm install electron@29.1.6
       npm start
      [PM2] Applying action stopProcessId on app [all](ids: [ 0 ])
      [PM2] [MagicMirror](0) ✓
      ┌────┬────────────────────┬──────────┬──────┬───────────┬──────────┬──────────┐
      │ id │ name               │ mode     │ ↺    │ status    │ cpu      │ memory   │
      ├────┼────────────────────┼──────────┼──────┼───────────┼──────────┼──────────┤
      │ 0  │ MagicMirror        │ fork     │ 8615 │ stopped   │ 0%       │ 0b       │
      └────┴────────────────────┴──────────┴──────┴───────────┴──────────┴──────────┘
      npm ERR! code ENOTEMPTY
      npm ERR! syscall rename
      npm ERR! path /home/pi/MagicMirror/node_modules/caniuse-lite
      npm ERR! dest /home/pi/MagicMirror/node_modules/.caniuse-lite-6h1pL5No
      npm ERR! errno -39
      npm ERR! ENOTEMPTY: directory not empty, rename '/home/pi/MagicMirror/node_modules/caniuse-lite' -> '/home/pi/MagicMirror/node_modules/.caniuse-lite-6h1pL5No'
      
      npm ERR! A complete log of this run can be found in: /home/pi/.npm/_logs/2024-04-26T16_37_54_575Z-debug-0.log
      
      > magicmirror@2.27.0 start
      > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
      
      [2024-04-26 18:38:03.262] [ERROR] App threw an error during load 
      [2024-04-26 18:38:03.265] [ERROR] Error: Cannot find module 'socket.io'
      Require stack:
      - /home/pi/MagicMirror/js/server.js
      - /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 node:internal/modules/cjs/loader:1084:15
          at Function.<anonymous> (node:electron/js2c/browser_init:2:116646)
          at Module._resolveFilename (/home/pi/MagicMirror/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:121:18)
          at Object.<anonymous> (/home/pi/MagicMirror/js/server.js:8:18)
          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:121:18)
          at Object.<anonymous> (/home/pi/MagicMirror/js/app.js:9:16) 
      A JavaScript error occurred in the main process
      Uncaught Exception:
      Error: Cannot find module 'socket.io'
      Require stack:
      - /home/pi/MagicMirror/js/server.js
      - /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 node:internal/modules/cjs/loader:1084:15
          at Function.<anonymous> (node:electron/js2c/browser_init:2:116646)
          at Module._resolveFilename (/home/pi/MagicMirror/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:121:18)
          at Object.<anonymous> (/home/pi/MagicMirror/js/server.js:8:18)
          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:121:18)
          at Object.<anonymous> (/home/pi/MagicMirror/js/app.js:9:16)
      
      
      
      S 1 Reply Last reply Apr 26, 2024, 4:41 PM Reply Quote 0
      • S Away
        sdetweil @RIKKO14
        last edited by Apr 26, 2024, 4:41 PM

        @RIKKO14 sounds like the npm install for MagicMirror failed

        do

        npm run install-mm

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        R 1 Reply Last reply Apr 26, 2024, 4:47 PM Reply Quote 0
        • R Offline
          RIKKO14 @sdetweil
          last edited by Apr 26, 2024, 4:47 PM

          @sdetweil

          pi@raspberrypi:~ $ npm run install-mm
          npm ERR! Missing script: "install-mm"
          npm ERR! 
          npm ERR! Did you mean this?
          npm ERR!     npm install # Install a package
          npm ERR! 
          npm ERR! To see a list of scripts, run:
          npm ERR!   npm run
          
          npm ERR! A complete log of this run can be found in: /home/pi/.npm/_logs/2024-04-26T16_46_42_166Z-debug-0.log
          pi@raspberrypi:~ $ 
          
          
          S 2 Replies Last reply Apr 26, 2024, 5:23 PM Reply Quote 0
          • S Away
            sdetweil @RIKKO14
            last edited by Apr 26, 2024, 5:23 PM

            @RIKKO14 ok, even worse, the git pull failed.

            do

            git pull
            show the output

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            B 1 Reply Last reply Apr 26, 2024, 5:47 PM Reply Quote 0
            • B Offline
              bugsounet Banned @sdetweil
              last edited by bugsounet Apr 26, 2024, 5:48 PM Apr 26, 2024, 5:47 PM

              pi@raspberrypi:~ $ npm run install-mm

              @sdetweil (inside MagicMirror Folder)

              maybe: (in this case)

              cd ~/MagicMirror
              rm -rf node_modules
              git reset --hard origin
              git pull
              npm run install-mm
              

              no ?

              S 1 Reply Last reply Apr 26, 2024, 5:56 PM Reply Quote 0
              • S Away
                sdetweil @bugsounet
                last edited by Apr 26, 2024, 5:56 PM

                @bugsounet I want to see what the problem is, not just wipe everything

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                B 1 Reply Last reply Apr 26, 2024, 5:57 PM Reply Quote 0
                • B Offline
                  bugsounet Banned @sdetweil
                  last edited by Apr 26, 2024, 5:57 PM

                  @sdetweil : yes… but inside MM² Folder not outside ;)

                  pi@raspberrypi:~ $ npm run install-mm

                  S 1 Reply Last reply Apr 26, 2024, 6:05 PM Reply Quote 0
                  • S Away
                    sdetweil @bugsounet
                    last edited by Apr 26, 2024, 6:05 PM

                    @bugsounet yes, of course

                    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 @RIKKO14
                      last edited by Apr 26, 2024, 6:07 PM

                      @RIKKO14 as @bugsounet noted, you have ti be in the MagicMirror folder for MagicMirror commands

                      I didn’t say that, as the last instructions left you in that folder

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      R 1 Reply Last reply Apr 27, 2024, 9:56 AM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 4 / 4
                      4 / 4
                      • First post
                        32/38
                        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