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.

    New update, new fail

    Scheduled Pinned Locked Moved Solved Troubleshooting
    6 Posts 3 Posters 1.4k 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.
    • luisestradaL Offline
      luisestrada
      last edited by

      Hi All,

      With this new update I got a new error and I can’t get a solution. Any help is much appreciated.

      App threw an error during load
      Error: Cannot find module ‘ansis’

      > magicmirror@2.27.0 start
      > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
      
      App threw an error during load
      Error: Cannot find module 'ansis'
      Require stack:
      - /home/pi/MagicMirror/js/logger.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 /home/pi/MagicMirror/js/logger.js:5:19
          at Object.<anonymous> (/home/pi/MagicMirror/js/logger.js:46:2)
          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)
      A JavaScript error occurred in the main process
      Uncaught Exception:
      Error: Cannot find module 'ansis'
      Require stack:
      - /home/pi/MagicMirror/js/logger.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 /home/pi/MagicMirror/js/logger.js:5:19
          at Object.<anonymous> (/home/pi/MagicMirror/js/logger.js:46:2)
      
      

      Regards,
      Luis

      luisestradaL 1 Reply Last reply Reply Quote 0
      • luisestradaL Offline
        luisestrada @luisestrada
        last edited by

        @luisestrada said in New update, new fail:

        App threw an error during load
        Error: Cannot find module ‘ansis’

        I was able to fix it with this

        sudo npm install ansis
        

        then the error was systeminformation and I did the same

        sudo npm install systeminformation
        

        FInally pm2 was the issue and I had to do

        sudo npm install pm2
        

        I also applied the following as the process requested it

        npm audit fix --force
        
        KristjanESPERANTOK S 2 Replies Last reply Reply Quote 0
        • KristjanESPERANTOK Offline
          KristjanESPERANTO Module Developer @luisestrada
          last edited by KristjanESPERANTO

          @luisestrada How did you run the update? git pull && npm run install-mm like in the docs?

          luisestradaL 1 Reply Last reply Reply Quote 0
          • luisestradaL Offline
            luisestrada @KristjanESPERANTO
            last edited by luisestrada

            @KristjanESPERANTO I always update with the MMM-Remote module

            KristjanESPERANTOK 1 Reply Last reply Reply Quote 0
            • KristjanESPERANTOK Offline
              KristjanESPERANTO Module Developer @luisestrada
              last edited by

              @luisestrada Please try the official way.

              1 Reply Last reply Reply Quote 1
              • S Away
                sdetweil @luisestrada
                last edited by

                @luisestrada also, don’t use sudo.

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • S sdetweil has marked this topic as solved on
                • 1 / 1
                • 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