Read the statement by Michael Teeuw here.
Problem after MM-upgrade
-
I just did an upgrade and got the following message:
pi@raspberrypi:~/MagicMirror $ npm start
magicmirror@2.26.0 start
DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js[16.01.2024 19:51.34.090] [LOG] Starting MagicMirror: v2.26.0
[16.01.2024 19:51.34.111] [LOG] Loading config …
[16.01.2024 19:51.34.120] [DEBUG] config template file not exists, no envsubst
[16.01.2024 19:51.34.133] [LOG] Loading module helpers …
[16.01.2024 19:51.34.145] [LOG] No helper found for module: alert.
[16.01.2024 19:51.34.204] [ERROR] (node:29116) UnhandledPromiseRejectionWarning: Error: Cannot find module ‘command-exists’
Require stack:- /home/pi/MagicMirror/modules/default/updatenotification/update_helper.js
- /home/pi/MagicMirror/modules/default/updatenotification/node_helper.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 Module._resolveFilename (node:internal/modules/cjs/loader:1082:15)
at n._resolveFilename (node:electron/js2c/browser_init:2:117457)
at Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
at Module._load (node:internal/modules/cjs/loader:927:27)
at f._load (node:electron/js2c/asar_bundle:2:13330)
at Module.require (node:internal/modules/cjs/loader:1148:19)
at require (node:internal/modules/cjs/helpers:110:18)
at Object. (/home/pi/MagicMirror/modules/default/updatenotification/update_helper.js:3:23)
at Module._compile (node:internal/modules/cjs/loader:1269:14)
at Module._extensions…js (node:internal/modules/cjs/loader:1324:10)
at Module.load (node:internal/modules/cjs/loader:1124:32)
at Module._load (node:internal/modules/cjs/loader:965:12)
at f._load (node:electron/js2c/asar_bundle:2:13330)
at Module.require (node:internal/modules/cjs/loader:1148:19)
at require (node:internal/modules/cjs/helpers:110:18)
at Object. (/home/pi/MagicMirror/modules/default/updatenotification/node_helper.js:4:22)
(Useelectron --trace-warnings ...
to show where the warning was created)
[16.01.2024 19:51.34.206] [ERROR] (node:29116) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag--unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
^C/home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
I appreciate all help. THANKS !!!
-
@CLLA1972 said in Problem after MM-upgrade:
Cannot find module ‘command-exists’
the
npm run install_mm
did not runI hate the pull && npm … if one fails the other doesn’t run, and you have no idea what is supposed to happen anyhow…
please show the output of git status
thats why I made the upgrade script
see
https://github.com/sdetweil/MagicMirror_scripts -
@sdetweil This?
pi@raspberrypi:~/MagicMirror $ git status
På grenen master
Din gren är à jour med “origin/master”.Ospårade filer:
(använd “git add …” för att ta med i det som ska checkas in)
custom.css
nohup.outinget köat för incheckning, men ospårade filer finns (spåra med “git add”)
-
@CLLA1972 (I am not an expert on this)
-
@CLLA1972 said in Problem after MM-upgrade:
(I am not an expert on this)
no problem… do this
stop mm
cd ~/MagicMirror npm run install-mm
then restart MM