Read the statement by Michael Teeuw here.
pm2 no longer launching MM
-
-
@JMac so, I would do this
pm2 stop all
cd ~/MagicMirror
npm startdoes it run correctly?
you MAY have to update pm2, its just an app too…
depending on how old it wassee the pm2 --help
for the command to do its update -
@sdetweil when I run npm start from the MM folder I get:
magicmirror@2.23.0 start
DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.jssh: 1: ./node_modules/.bin/electron: not found
-
@JMac ok, do this
what device is this on? pi3?
cd ~/MagicMirror rm -rf node_modules/electron npm install electron@22.3.4 npm start
please advise
-
@sdetweil this is on a 3b+.
when running npm install I’m now back to an error for ENOTEMPTY for node_modules/ansi-escapes.
it says directory not empty.
I think it wants it renamed no_modules/.ansi-escapes-TiTd7xs1 -
@JMac ok, try this
rm -rf node_modules/electron rm package-lock.json npm install electron@22.3.4 npm start
-
@sdetweil after running the npm install now getting a different ENOTEMPTY for nodes_modules/basic-auth.
Same issue of directory not empty -
@JMac weird, this makes no sense
-
@sdetweil I’m away with work until Friday but obviously want to try and get to the bottom of this.
I’ll likely end up moving the mirror to somewhere way closer to the WiFi router.
Will this stay open until the end of the week?Out of curiosity when launching via pm2 should it (in the little box that pops up in terminal) mention fork?
-
@JMac this will stay open til u close it…
yes, that is the linux term for starting an independent process