an alternative choice to this straight forward but a bit time intensive installation system is using a premade installation script. The (semi)official MagicMirror_scripts repository gives this type of script.
In https://idaygxs122666.jaiblogs.com/56079315/the-photo-booth-diaries