Read the statement by Michael Teeuw here.
pm2 no longer launching MM
-
@JMac which way did u upgrade? manual, git pull, or my script?
I see that you used the manual method, do this
cd ~/MagicMirror sudo rm -rf node_modules npm install --omit=dev
-
@sdetweil Thanks for your reply, your helping of others has helped me out endlessly with this project.
I run the npm install then get an error ENOTEMPTY around /home/pi/MagicMirror/node_modules/ansi-escapes.
saying the directory isn’t empty. -
@JMac and u erased the node_modules folder ( the rm -rf)
-
@sdetweil yes ran all three lines you posted.
-
@sdetweil Sorry to double reply, I ran the last 2 again and they worked ok, right up until the very end of the npm install when I got an ERR_SOCKET_TIMEOUT.
I’m assuming this is a wifi strength issue as the position of this mirror means it struggles at times. -
@JMac yeh, everything is very network dependent…
I ended up installing a mesh wifi system to be able to put an access point near where my hall mirror is
-
-
@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