Read the statement by Michael Teeuw here.
Default Weather Module Stuck on loading.
-
@fnmuffinman did you do the npm install in the module folder?
-
@sdetweil I was pretty sure I did but I ran it again and rebooted the mirror to the same results. Still the same error as the above screenshot in the dev tools console. Not sure if it matters, but I do have the mirror booting headless. I don’t remember exactly but it’s part of the startup script so when I reboot the pi, it automatically runs MM and loads it onscreen
-
@fnmuffinman what do you mean headless?
If no display here, you need to do
npm run serverAnd access from somewhere else
Make sure to enable config.js to allow other machine access -
@sdetweil sorry wrong terminology. It is running on a pi connected to a display. I meant headless in I don’t have peripherals on it, just ssh into it from my pc
-
@fnmuffinman how did you install MagicMirror
What version are you running
cd ~/MagicMirror grep version package.json -

Sorry for the delay!
-
@sdetweil Hi, just checking in to see if you saw my last reply above! If not, I was going to create a new thread with all the troubleshooting you have graciously help me out with to start from there
-
@fnmuffinman I did, sorry been traveling.
Can you Open the developers window
ctrl-shift-I
Select the console tab
Add weath to the filter field -
@sdetweil No worries, I figured you were probably busy! Here is what comes up

-
@fnmuffinman ok, a little more debug
cd ~/MagicMirror grep nunj package.jsonshould return
"nunjucks": "^3.2.4",then
cd node_modules ls nunjucks -laFshould return (I am on mac at the moment, with MagicMirror just installed, so dates will be different
drwxr-xr-x 10 sam staff 320 Feb 3 08:20 ./ drwxr-xr-x 685 sam staff 21920 Feb 3 08:21 ../ drwxr-xr-x 4 sam staff 128 Feb 3 08:20 bin/ drwxr-xr-x 10 sam staff 320 Feb 3 08:20 browser/ -rw-r--r-- 1 sam staff 2309 Feb 3 08:20 index.js -rw-r--r-- 1 sam staff 1311 Feb 3 08:20 LICENSE drwxr-xr-x 3 sam staff 96 Feb 3 08:20 node_modules/ -rw-r--r-- 1 sam staff 3138 Feb 3 08:20 package.json -rw-r--r-- 1 sam staff 2127 Feb 3 08:20 README.md drwxr-xr-x 23 sam staff 736 Feb 3 08:20 src/then I want to redo the MagicMirror npm install
cd ~/MagicMirror rm -rf node_modules npm installthen restart MagicMirror however you do it…
-
@sdetweil alright so i ran those commands. when I got to
ls nunjucks -laF
It returned that directory did not exist, which i would imagine is part of my issue. I then continued with the rest of the commands, then I got this error.

For context, recently I saw notifications on my mirror stating some modules needed to be updated. I ran through the docs for updating those but it’s possible I messed that up and caused myself a bigger problem here.
-
@fnmuffinman ah…
Node 23 is bad , so we won’t install there
So try either of these commands
n —version
nvm —versionDo either exist?
-
@sdetweil it appears neither do

-
@fnmuffinman good, thx
Do this
sudo npm install -g n sudo n 22.21.1 hash -r node -vShould show v 22.21.1
If not stop and adviseIf ok
Then docd ~/MagicMirror npm installThen start MagicMirror
-
@sdetweil IT WORKS!! I cannot thank you enough for your time and patience with the help on this. I have learned alot from walking through this troubleshooting with you. Are you able to tell me what I may or may not have done wrong to cause it to stop working?
-
@fnmuffinman great news!! Thanks for the feedback
As for what happened
You upgraded nodejs at some point
And didn’t catch the npm install error messageSo you had the new code (git pull) but not the runtime libs it needed
I recommend using my upgrade script in the future
-
@sdetweil gotcha! I would love to use a script instead of breaking things again lol where can i find your upgrade script and what does it all entail? does it upgrade Magic mirror and the modules or just MM itself?
-
@fnmuffinman the links are in the MagicMirror documentation

It does only MagicMirror
-
@sdetweil fantastic. Thanks again for all the help!!
-
S sdetweil has marked this topic as solved
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