Read the statement by Michael Teeuw here.
"pm2 start mm.sh" results in "node: bad option: --run"
-
My MM that I built last December died. I don’t know why. When booting up, screen would stay black, seemingly not booting into the OS. So I am starting again from scratch. I was able to extract the config.js from the previous SD card.
I am at the step where I am setting up pm2 - https://docs.magicmirror.builders/configuration/autostart.html
pm2 will not launch the MM display. After executing pm2 start mm.sh, the MM display does not appear, although it shows status online. In /.pm2/logs/mm-error.log, I am seeing node: bad option: --run many times.


When I execute node --run start, the MM display appears as normal.
node -v returns v25.1.0
npm -v returns 11.6.2
nvm -v returns 0.40.3
pm2 -v returns 6.0.13 -
@cyclonej we only support node 22.18.0
Can you try to down level
sudo npm install -g n sudo n 22.18.0 hash -r node -v \# if node 22 then cd ~/MagicMirror rm -rf node_modules npm installThe try pm2 stop all
pm2 start xX is the name/number of the row shown in
pm2 statusPm2 is started as a daemon at boot
It might take a reboot -
What if node is still 25?

-
nevermind. now pm2 start mm works!
i dont know what those commands did, but it worked
-
S sdetweil has marked this topic as solved on
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