• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

Electron error on install.

Scheduled Pinned Locked Moved Troubleshooting
8 Posts 3 Posters 7.0k 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.
  • D Offline
    darkcloud784
    last edited by darkcloud784 Nov 20, 2017, 10:32 PM Nov 20, 2017, 10:30 PM

    I seem to get the following error when installing magicmirror on a 100% fresh raspbian jessie 7-05-2017 pi 3b. In addition I also get this error when attemping to install electron directly from their repo. I have tried deleting my node_modules and reinstalling again as well with no success.

    pi@raspberrypi:~/MagicMirror $ npm install
    
    > uws@0.14.5 install /home/pi/MagicMirror/node_modules/uws
    > node-gyp rebuild > build_log.txt 2>&1 || exit 0
    
    
    > electron-chromedriver@1.6.0 install /home/pi/MagicMirror/node_modules/electron                                                                                                                                   -chromedriver
    > node ./download-chromedriver.js
    
    
    > electron@1.7.9 postinstall /home/pi/MagicMirror/node_modules/electron
    > node install.js
    
    /home/pi/MagicMirror/node_modules/electron/install.js:48
      throw err
      ^
    
    Error: read ECONNRESET
        at exports._errnoException (util.js:1020:11)
        at TLSWrap.onread (net.js:568:26)
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! electron@1.7.9 postinstall: `node install.js`
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the electron@1.7.9 postinstall script.
    npm ERR! This is probably not a problem with npm. There is likely additional log                                                                                                                                   ging output above.
    
    npm ERR! A complete log of this run can be found in:
    npm ERR!     /home/pi/.npm/_logs/2017-11-20T20_52_58_769Z-debug.log
    
    M 1 Reply Last reply Nov 21, 2017, 12:48 AM Reply Quote 0
    • M Offline
      Mykle1 Project Sponsor Module Developer @darkcloud784
      last edited by Nov 21, 2017, 12:48 AM

      @darkcloud784

      Try deleting the electron folder from this path:
      `MagicMirror/node_modules/electron

      Then run npm install in the MagicMirror directory. This should install electron for you.

      Then run npm start in the MagicMirror directory

      Create a working config
      How to add modules

      D 1 Reply Last reply Dec 9, 2017, 6:51 AM Reply Quote 2
      • A Offline
        AB_Normal
        last edited by Nov 28, 2017, 2:01 AM

        Thank you so much! this helped me a lot. I do not know why this bug /issue has not been addressed. I used the single-line ¨Automated¨ install and THAT failed first because Node.js was too old, so the one line command does not auto-update Node.js. I figured that out and updated the entire Raspberry pie in the CLI, then re-installed MM from the single line ¨Automated¨ command and then it installed cleanly, but your suggestion here to delete electron, then run npm install then npm start has fixed the last final issues. Thanks again!

        M A 2 Replies Last reply Nov 28, 2017, 2:06 AM Reply Quote 1
        • M Offline
          Mykle1 Project Sponsor Module Developer @AB_Normal
          last edited by Nov 28, 2017, 2:06 AM

          @AB_Normal

          You’re welcome, mate.

          Create a working config
          How to add modules

          1 Reply Last reply Reply Quote 1
          • A Offline
            AB_Normal @AB_Normal
            last edited by Nov 28, 2017, 2:20 AM

            @AB_Normal I did not mention in my last post, but to get past the node.js being too old issue, from the TERMINAL window, I typed, sudo apt-get update then, when that was finished I typed sudo apt-get upgrade you first get the files with the update command, then install them with the upgrade command. That will update ALL of the files/librairies/programs, whatever they are called in linux (Iḿ a windows person), INCLUDING node.js. Now if you run the single line automated command in the terminal, then do as Markle1 suggests and delete the ELECTRON folder, then, from the MagicMirror folder in the terminal window run the npm install, then run the npm start command, you MagicMirror will work. OH, Have to do as MArkle1 says and copy and rename the config.js.sample file to config .js also.

            1 Reply Last reply Reply Quote 1
            • A Offline
              AB_Normal
              last edited by Nov 28, 2017, 2:22 AM

              Replace Markle1 with Mykle1. Sorry , I screwed up your name.

              M 1 Reply Last reply Nov 28, 2017, 2:23 AM Reply Quote 0
              • M Offline
                Mykle1 Project Sponsor Module Developer @AB_Normal
                last edited by Mykle1 Nov 28, 2017, 2:25 AM Nov 28, 2017, 2:23 AM

                @AB_Normal said in Electron error on install.:

                Replace Markle1 with Mykle1. Sorry , I screwed up your name.

                No worries, mate. I’ve been called worse. :-)

                EDIT Click the three dots at the bottom right of your post and choose Edit. Then you can fix whatever you like and no one will be any the wiser. :-)

                Create a working config
                How to add modules

                1 Reply Last reply Reply Quote 0
                • D Offline
                  darkcloud784 @Mykle1
                  last edited by darkcloud784 Dec 9, 2017, 6:52 AM Dec 9, 2017, 6:51 AM

                  @Mykle1 said in Electron error on install.:

                  @darkcloud784

                  Try deleting the electron folder from this path:
                  `MagicMirror/node_modules/electron

                  Then run npm install in the MagicMirror directory. This should install electron for you.

                  Then run npm start in the MagicMirror directory

                  Unfortunately this didn’t work for me, but I did find a solution. I had to upgrade nodejs manually.

                  npm cache clean -f
                  npm install -g n
                  n stable
                  
                  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