Read the statement by Michael Teeuw here.
MM failed after updating
-
Hi, after updating my MM, when i try to start i get this error.
node_modules/.bin/electron: not found"
what should i do?
-
@sdetweil I was able to fix it.
git reset --hard
followed bynpm run install-mm
fixed the issue. I don’t know why but now everything is fine again. I’ll do a SD-card back-up now :-) -
@1a2a3a please tell me how you updated and what.platform you are on
-
@sdetweil on pi 5. updated using your script. while attempting to google search for fixes, i seems to have broken more stuff. trying to rebuild again from scratch…using your script… to update again…
-
@1a2a3a can you show me the ~/MagicMirror/installers/upgrade.log
in the future ask for help first, vs apply random answers.
you could have just tried installing the electon version.
-
@sdetweil i cant. i deleted the entire folder. just installed using your script. now transferring the modules folder from backup to the pi.
thats what i did actually, installing the electron but it keep throwing error like npm ERR! signal sigint
npm ERR! code E404 -
@1a2a3a thanks. i needed to see the actual npm install output
use my backup/restore scripts
-
@sdetweil thanks. still in the midst of transferring.
why are you up so early? i recall you were some hours behind so when i posted this i figured i wouldnt get a response so soon hence my attempt of own answer.
-
@1a2a3a i was on US west coast time for a couple months now back in central time. thanks for noticing…
-
@sdetweil i see. anyway, my calendar, stocks and google photo are not loading. it says check logs for details – where can i find the logs again?
edit—
its odd. when i run npm start dev, everything is working fine, everything loads.
but when i run pm2 start MagicMirror - my cal, stocks and photos are not loading. am i suppose to let it sit there for awhile?
-
@1a2a3a logs are output where the npm start is done.
pm2 captures them
do thispm2 stop all
pm2 flush
pm2 start MagicMirrorwait 15 seconds
pm2 stop all
pm2 logs --lines=75