That’s… well, that’s a new one.
I hate to say it, but I would recommend a reinstall of the MagicMirror framework. This isn’t pleasant but it can be accomplished in about 30 minutes.
First step: back up your
config.js file. Copy it to your /home/pi directory or wherever. Verify that it copied properly.
Second step: write down a list of all of your installed modules.
3rd step: Stop the magic mirror framework. Usually this is
pm2 stop all.
4th step: Delete the magic mirror folder.
rm -rf /home/pi/MagicMirror
5th re-clone Magic Mirror manually.
git clone https://github.com/MichMich/MagicMirror.git
6th step: install Magic Mirror (this will take a few minutes):
7th step - Install modules: Change to the modules folder:
cd /home/pi/MagicMirror/modules. For each module in your
config.js file, find them on GitHub and clone the module.
git clone [module url]. Be sure to follow the installation instructions for each module. Some will be easy, some will involve the
npm install command, and some will be complex (MMM-FitBit).
8th Step - copy your
config.js from backup to the original location in
9th step: run the MagicMirror process and see how she rolls:
pm2 start MagicMirror.