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.

    Installing on Pi 3B | Unable to install dependencies! | Error 128 in debug logs

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    7 Posts 3 Posters 2.7k 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.
    • bheplerB Offline
      bhepler Module Developer
      last edited by

      It looks like you’re attempting to install the Magic Mirror as the root user. You don’t want to do that. I would delete the /root/MagicMirrordirectory, change back to the pi and then install from the home directory of that user.

      1 Reply Last reply Reply Quote 0
      • R Offline
        Roskafarian
        last edited by

        Thanks for getting back to me @bhepler! I ran it as the normal PI user but ran into this:

        Installing dependencies ...
        npm WARN deprecated time-grunt@2.0.0: Deprecated because Grunt is practically unmaintained. Move on to something better. This package will continue to work with Grunt v1, but it will not receive any updates.
        npm WARN deprecated nomnom@1.8.1: Package no longer supported. Contact support@npmjs.com for more info.
        
        > electron-chromedriver@1.8.0 install /home/pi/MagicMirror/node_modules/electron-chromedriver
        > node ./download-chromedriver.js
        
        successfully dowloaded and extracted!
        
        > electron@2.0.16 postinstall /home/pi/MagicMirror/node_modules/electron
        > node install.js
        
        Downloading electron-v2.0.16-linux-arm.zip
        Error: read ECONNRESET
        /home/pi/MagicMirror/node_modules/electron/install.js:54
          throw err
          ^
        
        Error: read ECONNRESET
            at _errnoException (util.js:1022:11)
            at TLSWrap.onread (net.js:628:25)
        npm WARN grunt-stylelint@0.10.1 requires a peer of stylelint@^9.0.0 but none is installed. You must install peer dependencies yourself.
        npm WARN acorn-jsx@5.0.1 requires a peer of acorn@^6.0.0 but none is installed. You must install peer dependencies yourself.
        
        npm ERR! code ELIFECYCLE
        npm ERR! errno 1
        npm ERR! electron@2.0.16 postinstall: `node install.js`
        npm ERR! Exit status 1
        npm ERR! 
        npm ERR! Failed at the electron@2.0.16 postinstall 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/2019-01-25T18_59_27_944Z-debug.log
        Unable to install dependencies!
        
        

        Although, I got a little further this time around!

        1 Reply Last reply Reply Quote 0
        • R Offline
          Roskafarian
          last edited by

          I was an idjit. I thought I had removed the directories but it seems there was another hidden one. We’re fine!

          bheplerB 1 Reply Last reply Reply Quote 0
          • bheplerB Offline
            bhepler Module Developer @Roskafarian
            last edited by

            @roskafarian Glad to hear it! Does that mean this issue is resolved?

            1 Reply Last reply Reply Quote 0
            • R Offline
              Roskafarian
              last edited by

              Oh yes! We’re cooking with lighter fluid as we speak

              1 Reply Last reply Reply Quote 0
              • DæmonEyesD Offline
                DæmonEyes
                last edited by

                In case you didn’t find a solution yet, a user by the name sdetweil just helped me with a similar problem with my RPi 3 B+ running the latest Rasbian Stretch.

                Here is the link to that discussion for everyone else who is stuck at this step too:
                https://forum.magicmirror.builders/topic/9636/stuck-at-unable-to-install-dependencies/8?page=1

                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