Read the statement by Michael Teeuw here.
Attempted to add MM-Remote-Control, now MagicMirror won't start
-
Hello everyone! I don’t have much experience so bear with me on this but I was setting up my MM when I decided to add in the MM-Remote-Control module. It took a while but after some tinkering I was able to get it to work via my phone by changing the ipWhitelist section to:
ipWhitelist: [],Seemed to have work and was able to shutdown my pi with my phone. After rebooting and making some updates via the remote control to two modules I have, the mirror stopped working and no longer runs. I tried to restart the mirror as well as the pi but still does not work. This is the error message I receive
pi@raspberrypi:~/MagicMirror $ npm run start > magicmirror@2.21.0 start /home/pi/MagicMirror > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js /home/pi/MagicMirror/node_modules/electron/index.js:17 throw new Error('Electron failed to install correctly, please delete node_modules/electron and try installing again'); ^ Error: Electron failed to install correctly, please delete node_modules/electron and try installing again at getElectronPath (/home/pi/MagicMirror/node_modules/electron/index.js:17:11) at Object.<anonymous> (/home/pi/MagicMirror/node_modules/electron/index.js:21:18) at Module._compile (internal/modules/cjs/loader.js:778:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at Module.require (internal/modules/cjs/loader.js:692:17) at require (internal/modules/cjs/helpers.js:25:18) at Object.<anonymous> (/home/pi/MagicMirror/node_modules/electron/cli.js:3:18) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! magicmirror@2.21.0 start: `DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the magicmirror@2.21.0 start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2022-12-17T20_57_05_651Z-debug.logI previously had the MM autostart with pm2 but it no longer does this. Would appreciate any help.
-
@monkeyjb123 said in Attempted to add MM-Remote-Control, now MagicMirror won't start:
Electron failed to install correctly, please delete node_modules/electron and try installing again
do
cd ~/MagicMirror rm -rf node_modules/electron npm install electron@19.1.0 -
@sdetweil Thank you! Just did that and it is auto-running again. Some modules like the weather are no longer showing up and the font has changed on the mirror
-
@monkeyjb123 I don’t know what you did before.
I never use rmc to do updates
what does the pm2 log show?
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