Read the statement by Michael Teeuw here.
MM not loading after software update
-
@sdetweil sorry, I am a complete newbie. I tried entering node-v and npm-v in the terminal and I get “command not found”.
-
@Redicaljk there is a space between node and -v
-
@sdetweil thank you!
pi@rpi4:~ $ node -v
v16.17.0
pi@rpi4:~ $ npm -v
8.15.0
pi@rpi4:~ $ -
@Redicaljk ok, lets redo the npm install for MagicMirror
cd ~/MagicMirror rm -rf node_modules rm package-lock.json npm install --omit=dev -
@sdetweil done. Still having an issue:
magicmirror@2.20.0 start
DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js[20.08.2022 09:12.14.860] [LOG] Starting MagicMirror: v2.20.0
[20.08.2022 09:12.14.865] [LOG] Loading config …
[20.08.2022 09:12.14.871] [LOG] Loading module helpers …
[20.08.2022 09:12.14.873] [LOG] No helper found for module: alert.
[20.08.2022 09:12.15.181] [LOG] Initializing new module helper …
[20.08.2022 09:12.15.182] [LOG] Module helper loaded: MMM-AlexaControl
[20.08.2022 09:12.15.185] [LOG] Initializing new module helper …
[20.08.2022 09:12.15.186] [LOG] Module helper loaded: updatenotification
[20.08.2022 09:12.15.186] [LOG] No helper found for module: clock.
[20.08.2022 09:12.15.403] [LOG] Initializing new module helper …
[20.08.2022 09:12.15.404] [LOG] Module helper loaded: calendar
[20.08.2022 09:12.15.404] [LOG] No helper found for module: calendar_monthly.
[20.08.2022 09:12.15.405] [LOG] No helper found for module: weather.
[20.08.2022 09:12.15.408] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module ‘jsdom’
Require stack:- /home/pi/MagicMirror/modules/MMM-OnThisDay/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
-
@Redicaljk see this topic, for missing libraries
https://forum.magicmirror.builders/topic/15778/fix-for-black-screen-in-2-16-and-later, 1st post gives instructions
-
@sdetweil thank you! I’ll give it a try.
-
@Redicaljk Looks like the original issue has been resolved, however, MM still crashes. I can’t copy the error without this post being marked as spam!!!
-
@Redicaljk send to me in email…
same userid at gmail -
@Redicaljk did some other module need a library?
-
@sdetweil just emailed you.
-
@Redicaljk looking at it
-
@Redicaljk workaround, do
cd ~/MagicMirror nano package.jsonscroll down to the line that looks like this
"start": "DISPLAY=\"${DISPLAY:=:0}\" ./node_modules/.bin/electron js/electron.js",change to look like this
"start": "DISPLAY=\"${DISPLAY:=:0}\" ./node_modules/.bin/electron --no-sandbox js/electron.js",ctrl-o
to save the changed file
ctrl-x to exit nanothen npm start to test
-
@Redicaljk see my post above
-
@sdetweil Success! Thank you. MM now loads and does not crash but Weather module is not loading and there’s an error in the calendar module.
-
@Redicaljk show the errors, email if required
-
@sdetweil just emailed you.
-
@Redicaljk k… not sure on calendar…
on onthisday do
cd ~/MagicMirror/modules/MMM-OnThisDay rm -rf node_modules rm package-lock.json npm install --omit=devthen try again , works here
-
@sdetweil I really don’t know how to thank you. MM is back up and working as before including the calendar, weather and on this day.
Do you know what caused this issue? Was it the software update?
-
@Redicaljk looks like the sw update updated node and messed everything up…
to update MagicMirror (next release Oct 1) , see my scripts
https://github.com/sdetweil/MagicMirror_scriptsthey do all this remove/npm install for the base and every module and fix the missing libs too… I will add jsdom to the list
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