Read the statement by Michael Teeuw here.
UNSOLVED Updated OS. MM no longer starts
I recently ran yum update/upgrade on my Pi.
It updated a bunch of things and now MM no longer starts.
Any chance someone can explain how the install got hosed and what I need to do to make it work again? I had a small script that would run it from the home directory, but that doesn’t work any more (npm isn’t found) - I assume the update hosed some environment variables or PATH? What’s the best way to fix this and how can I avoid this happening again (other than not updating)
@Myst after the git pull, u need to run npm install in the mm folder
I did that and npm was not found. I also tried “whereis npm” and didn’t get any results.
sudo apt get install npm
npm install -g npm
Is it possible that npm is installed on the server and just that it’s not in the path? Where is the file under the GUI that tells what program to automatically run when booting up? The update also appeared to hose that.
@Myst - There’s more than one. Part of the “fun” of unix-based systems. PM2 will start things automatically. So will systemd. So will rc.local. I’m probably missing one or two.
How is MM normally started? Anybody know what is put in which file?
@Myst - The installation script from the GitHub repository uses pm2 to start Magic Mirror. The pm2 application starts and monitors a script in the
run-start.sh. If the script crashes/exits for any reason, pm2 will detect it and restart that script.