Read the statement by Michael Teeuw here.
MMM-Remote-Control
-
OK…
New version now shows the same error…
Actually my mirror works pretty fine…
So I hesitate to update node …
What are the risks - and if: How do I do update node?- Will my mirror run afterwards or do I have to upgrade the mirror as well?
Thanks for any advise!
Warmest regards,
RalfI’m not able to attach the logfile…
[2025-12-20T10_58_15_392Z-debug-0.log](Invalid file type. Allowed types are: .jpg, .jpeg, .png, .gif, .png, .jpg, .jpeg, .gif) -
@rkorell to upgrade node use one of the tools
nvm or n
I prefer n
stop MagicMirror if runningsudo npm install n -g sudo n 22.18 hash -r node -vShould confirm node is upgraded
Now we need to fix the MagicMirror dependencies
cd ~/MagicMirror rm -rf node_modules npm installThen start MagicMirror
In the future, if you want to upgrade MagicMirror, use my upgrade script and it will also upgrade node if necessary
-
@rkorell you can only upload pics here, you can paste some of the log into a message ( use the code block )
-
@sdetweil
Dear Sam,
thanks for this.Until now I had avoided to upgrade with the thought “never touch a running system” …
Now it seems to be time for an upgrade - because I like MMM-Remote-Control.
@kristjanesperanto said: " at least node 22. I recommend version 24" - would one of these versions be installed by your current upgrade-script?Than I would feel much better using your script than doing it manually …
As far as I remember i had some local (code) modifications in standard-weather module - this would prevent your upgrade-script from upgrading, as far as I remember.
Is this still true? And if yes: There was a “force” ooption in the script?Thanks a lot for your work!
Warmest regards,
Ralf -
@rkorell force was if you already had started installing MM and had the latest code… NOT if you have code changes
the upgrade will report if files are changed and allow you to save them in git. but generally its intended to remind you where you made changes and do something about it…
the node upgrade should not impact the running MM… (I say that with ’ quote marks, cause I am not sure…)
WHY do you NEED the RemoteControl update?? if you don’t NEED it, then don’t take it…
-
@rkorell said in MMM-Remote-Control:
would one of these versions be installed by your current upgrade-scrip
today it will install node 22.18.0
after Jan 1 (2 weeks away) it will install 22.21.1 (for the next release) -
@sdetweil
Good point!
Unfortunately I’ve already DONE the upgrade of remote-control - and now it doesn’t work anymore :-) -
@sdetweil
just ran a testrun of your upgrade script:pi@MagicMirrorPi5:~/MagicMirror $ bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)" update log will be in /home/pi/MagicMirror/installers/upgrade.log doing test run = true, NO updates will be applied! Check current Node installation ... Node currently installed. Checking version number. Minimum Node version: v22.18.0 Installed Node version: v20.18.1 Node should be upgraded. Node.js upgrade defered, doing test run Check current NPM installation ... NPM currently installed. Checking version number. Minimum npm version: V10.9.2 Installed npm version: V10.8.2 npm should be upgraded. npm upgrade defered, doing test run ... saving custom.css reverting to master branch from _fix_clipping, saving changed files would restore file modules/default/weather/current.njk before switch back to master branch would restore file package-lock.json before switch back to master branch would restore file package.json before switch back to master branch error: Your local changes to the following files would be overwritten by checkout: package-lock.json package.json Please commit your changes or stash them before you switch branches. Aborting unable to change back to master branch, stopping executionWhat does the last message mean?
“unable to change back to master branch, stopping execution”
What have I to do? -
@sdetweil
BTW: Do you know if it is possible to restore the “old” version from remote-control?
May THIS is the better option for me? -
@rkorell can you tell me when old was? luckily this module uses tags for releases, so you could restore to one of the previous releases…
in the module folder do
git fetch --all --tagsthen when we figure out which release to try, we can
git checkout <tag_name>Release 3.2.1 was about 5 months ago.
