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 ansisthen the error was systeminformation and I did the same
sudo npm install systeminformationFInally pm2 was the issue and I had to do
sudo npm install pm2I 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-mmlike in the docs? -
@KristjanESPERANTO I always update with the MMM-Remote module
-
@luisestrada Please try the official way.
-
@luisestrada also, don’t use sudo.
-
S sdetweil has marked this topic as solved on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login