MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Attempted to add MM-Remote-Control, now MagicMirror won't start

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    4 Posts 2 Posters 779 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      monkeyjb123
      last edited by

      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.log
      
      

      I previously had the MM autostart with pm2 but it no longer does this. Would appreciate any help.

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @monkeyjb123
        last edited by sdetweil

        @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
        

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        M 1 Reply Last reply Reply Quote 0
        • M Offline
          monkeyjb123 @sdetweil
          last edited by

          @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

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @monkeyjb123
            last edited by

            @monkeyjb123 I don’t know what you did before.

            I never use rmc to do updates

            what does the pm2 log show?

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0

            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
            • 1 / 1
            • First post
              Last post
            Enjoying MagicMirror? Please consider a donation!
            MagicMirror created by Michael Teeuw.
            Forum managed by Sam, technical setup by Karsten.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy