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.

    Error installing the magicmirror

    Scheduled Pinned Locked Moved Troubleshooting
    8 Posts 3 Posters 4.5k Views 3 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.
    • cowboysdudeC Offline
      cowboysdude Module Developer
      last edited by

      @jubeenshah said in Error installing the magicmirror:

      Failed at the electron

      @Jakllo
      I initially had that problem too - you need to be logged in as PI - not root.
      I’d suggest starting all over: it really wont take that long. Follow the
      tutorial @strawberry-3-141 mentioned (https://forum.magicmirror.builders/topic/236/complete-setup-tutorial) to the letter. It was written by @KirAsh4 & made all of my problem go away. I have now done it 4 times, getting it done in less than an hour from unpacking to having it all run!

      My raspberry all of a sudden even connected via WiFi, and I am expecting my hair to grow back any day now.

      I’m telling you - pure magic, these guys.

      All the best

      J 4 Replies Last reply Reply Quote 2
      • J Offline
        jubeenshah @cowboysdude
        last edited by

        @cowboysdude Thanks a lot! I’ll try that and let you know about how it turns about!

        1 Reply Last reply Reply Quote 1
        • J Offline
          jubeenshah @cowboysdude
          last edited by

          @cowboysdude I tried again following the steps… but then in the end it again showed me errors regarding installing dependencies…

          I believe two in particular…

          npm WARN prefer global coffee-script@1.10.0 should be installed with -g
          npm WARN prefer global jsonlite@1.6.2 should be installed with -g
          > electron-chromedriver@1.7.1 install/jome/pi/MagicMirror/node_modules/electron-chromedriver
          > node ./download-chromedriver.js
          
          1 Reply Last reply Reply Quote 0
          • J Offline
            jubeenshah @cowboysdude
            last edited by

            @cowboysdude

            > magicmirror@2.1.1 start /home/pi/MagicMirror
            > sh run-start.sh
            
            /home/pi/MagicMirror/node_modules/electron/index.js:9
              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 Object. (/home/pi/MagicMirror/node_modules/electron/index.js:9:9)
                at Module._compile (module.js:570:32)
                at Object.Module._extensions..js (module.js:579:10)
                at Module.load (module.js:487:32)
                at tryModuleLoad (module.js:446:12)
                at Function.Module._load (module.js:438:3)
                at Module.require (module.js:497:17)
                at require (internal/module.js:20:19)
                at Object. (/home/pi/MagicMirror/node_modules/electron/cli.js:3:16)
                at Module._compile (module.js:570:32)
            npm ERR! code ELIFECYCLE
            npm ERR! errno 1
            npm ERR! magicmirror@2.1.1 start: `sh run-start.sh`
            npm ERR! Exit status 1
            npm ERR! 
            npm ERR! Failed at the magicmirror@2.1.1 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/2017-05-18T13_11_39_986Z-debug.log
            
            1 Reply Last reply Reply Quote 0
            • J Offline
              jubeenshah @cowboysdude
              last edited by

              @cowboysdude Nevermind bro… I solved it on my own and it worked out… Thanksss a lot brother

              cowboysdudeC Mykle1M 2 Replies Last reply Reply Quote 1
              • cowboysdudeC Offline
                cowboysdude Module Developer @jubeenshah
                last edited by

                @jubeenshah Glad you got it.

                1 Reply Last reply Reply Quote 0
                • Mykle1M Offline
                  Mykle1 Project Sponsor Module Developer @jubeenshah
                  last edited by

                  @jubeenshah said in Error installing the magicmirror:

                  I solved it on my own and it worked out…

                  Perhaps you’ll post how you solved the issue so others might benefit if they have the same issue. :-)

                  Create a working config
                  How to add modules

                  1 Reply Last reply Reply Quote 1
                  • 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