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

New update, new fail

Scheduled Pinned Locked Moved Solved Troubleshooting
6 Posts 3 Posters 1.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.
  • L Offline
    luisestrada
    last edited by Apr 3, 2024, 5:46 PM

    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

    L 1 Reply Last reply Apr 3, 2024, 6:18 PM Reply Quote 0
    • L Offline
      luisestrada @luisestrada
      last edited by Apr 3, 2024, 6:18 PM

      @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
      
      K S 2 Replies Last reply Apr 3, 2024, 6:55 PM Reply Quote 0
      • K Offline
        KristjanESPERANTO Module Developer @luisestrada
        last edited by KristjanESPERANTO Apr 3, 2024, 6:56 PM Apr 3, 2024, 6:55 PM

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

        L 1 Reply Last reply Apr 9, 2024, 8:14 PM Reply Quote 0
        • L Offline
          luisestrada @KristjanESPERANTO
          last edited by luisestrada Apr 9, 2024, 8:15 PM Apr 9, 2024, 8:14 PM

          @KristjanESPERANTO I always update with the MMM-Remote module

          K 1 Reply Last reply Apr 9, 2024, 8:19 PM Reply Quote 0
          • K Offline
            KristjanESPERANTO Module Developer @luisestrada
            last edited by Apr 9, 2024, 8:19 PM

            @luisestrada Please try the official way.

            1 Reply Last reply Reply Quote 1
            • S Away
              sdetweil @luisestrada
              last edited by Apr 13, 2024, 1:41 PM

              @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 Apr 13, 2024, 1:41 PM
              • 1 / 1
              1 / 1
              • First post
                4/6
                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