Read the statement by Michael Teeuw here.
Cannot find module 'undici' - 'npm install' doesn't work
-
@Klinge yes it says we need node 20.18.1 or above
https://forum.magicmirror.builders/topic/19271/version-2-30-0-requires-updated-nodejs-warning-for-pi0w-installationsanyhow quickest way
install tool to allow changing node versionssudo npm install n -g sudo n 20.18.1
now do the MagicMirror install
cd ~/MagicMirror npm run install-mm
-
@Klinge also, next time use my upgrade script
-
@sdetweil Thank you for your help.
After updating to 20.18.1 unfortunately I get the following error
pi@raspberrypi:~/MagicMirror $ pwd /home/pi/MagicMirror pi@raspberrypi:~/MagicMirror $ npm run install-mm node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node)
And yes, the next time I will use your upgrade script ;-)
-
@Klinge you are on buster os… you need to upgrade to a later version, as that library is not available on buster… my script would have told you that…
use my backup/restore scripts
https://github.com/sdetweil/MagicMirror-backup-restoreto be able to quickly move to new OS
use install script to install MM on new os
https://github.com/sdetweil/MagicMirror_scripts
and then restore to put back MM config and modules(and upgrade script next time)
-
@sdetweil Shit, that’s the same problem I had with my second mirror a few weeks ago. Well, it’s been running fine since 2016.
Many thanks for your tips. With your scripts I’ll quickly install the new one. -
@Klinge if you had started w my script it would have told you so you didn’t have to upgrade NOW . sorry
the whole objective of my scripts is to prevent this exact scenario. broke system.