Read the statement by Michael Teeuw here.
install upgrade scripts changed for version 2.25 and node 20
-
given all the troubles with the node install process, I have rewritten that function to use the
n
command to do the upgrades for node and npm
(n is a newer designed version of the nvm command (nvm= node version manager)| edit… all the changes have been merged back into master
| too many using the master link as they didn’t look here…- upgrade
bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)" force- install
bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/raspberry.sh)"everything else is the same … let me know
so far all the places we’ve experienced troubles seem to be corrected now…
just need some real test feedback…thanks for your time.
-
S sdetweil referenced this topic on
-
as I face the same “node 20.8.0, but got 20.5.1” problematic, I tried to use upgrade script and get the error:

-
@bdream what system are you running on?
show output ofuname -a -
@sdetweil said in install upgrade scripts changed for version 2.,25 and node 20:
uname -a
Linux MagicMirror 5.15.32-v7+ #1538 SMP Thu Mar 31 19:38:48 BST 2022 armv7l GNU/Linux -
@bdream if u click the link while viewing here, you should see the source of the script
this sounds like an Internet issue
that error says it could not download the script
-
@sdetweil I wonder as I can ping from the Raspi and also get the usual update script working.

From my PC I can also see both scripts in testit and in master
-
@bdream interesting… never seen a problem like that before…
-
@sdetweil I wonder as both scrips are nearly same.
one is running other gives error in line 1 from script. I can’t see a difference :( -
@sdetweil Great work Sam. Do we need to run the node script first?
bash -c “$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/node20_install.sh)”
Or just the normal upgrade process with apply?
After fixing my dev machine I am about ready to give your script a go on my mirror but want to just double check if the node script is still required.
-
@bdream try this
curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/testit/upgrade-script.sh -
@sdetweil I get the whole script shown on the screen
-
@bdream as it should,
I see there was a problem with the " in the 1st post…
try again, copy/paste that line again
-
@sdetweil Just to let you know this script worked fine on my Mirror first time. Did not need to run the Node one
-
@mumblebaj said in install upgrade scripts changed for version 2.25 and node 20:
Did not need to run the Node one
correct… it is part of the install and upgrade scripts now
did u run the testit branch version?
-
@sdetweil That is correct and worked first time. Checked the installers log and no errors or issues either. Strange thing though, it had no issue with MMM-NewsAPI either and that works fine.
-
@sdetweil yes, script is running now :beaming_face_with_smiling_eyes:
MM is not starting automatic, also not after reboot.
But this work finepm2 start 0
-
@bdream ok
probably missing library on some module
do this
pm2 stop all cd ~/MagicMirror npm start >/somefile.txt 2>&1wait 15 seconds
in this same terminal window do
ctrl-cthen examine somefile.txt
-
@sdetweil do I have to use sudo?

And what exactly you mean “then examine somefile.txt”?
-
@bdream edit sorry, typo
2>./somefile.txt
(notice the missing leading .)examine… edit, view, look inside
-
this run this script:
bash -c “$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/testit/raspberry.sh)”
get this error:
system running in command line mode, configured for graphical desktop, please rebootafter reboot, same error
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