A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Read the statement by Michael Teeuw here.
New update, new fail
-
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 -
@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
-
@luisestrada How did you run the update?
git pull && npm run install-mm
like in the docs? -
@KristjanESPERANTO I always update with the MMM-Remote module
-
@luisestrada Please try the official way.
-
@luisestrada also, don’t use sudo.
-