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.

    Can't install MM on brand new Pi4

    Scheduled Pinned Locked Moved Troubleshooting
    9 Posts 2 Posters 538 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.
    • D Offline
      Diminished7th @sdetweil
      last edited by Diminished7th

      @sdetweil and this is from the terminal above the checksum error, after it finishes cloning MM:

      Installing dependencies ...
      npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
      npm WARN deprecated rrule-alt@2.2.8: Please use rrule instead
      npm WARN deprecated left-pad@1.3.0: use String.prototype.padStart()
      npm WARN deprecated webdriverio@4.14.4: outdated version, please use @next
      npm WARN deprecated core-js@2.6.11: core-js@3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
      npm WARN deprecated mkdirp@0.5.1: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
      npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
      npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
      /home/pi/MagicMirror/node_modules/electron/install.js:53
        throw err
        ^
      
      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @Diminished7th
        last edited by

        @Diminished7th fun, try this

        cd ~/MagicMirror
        npm remove electron
        npm install electron@6.1.12
        

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        D 1 Reply Last reply Reply Quote 0
        • D Offline
          Diminished7th @sdetweil
          last edited by

          @sdetweil no joy. Still getting what appears to be the same error:

          pi@raspberrypi:~/MagicMirror $ npm install electron@6.1.12
          
          > electron@6.1.12 postinstall /home/pi/MagicMirror/node_modules/electron
          > node install.js
          
          Downloading tmp-18488-0-electron-v6.1.12-linux-armv7l.zip
          [============================================>] 100.0% of 54.85 MB (660.36 kB/s)
          /home/pi/MagicMirror/node_modules/electron/install.js:53
            throw err
            ^
          
          Error: Generated checksum for "electron-v6.1.12-linux-armv7l.zip" did not match expected checksum.
              at Hash.hasher.on (/home/pi/MagicMirror/node_modules/sumchecker/index.js:151:20)
              at Hash.emit (events.js:198:13)
              at emitReadable_ (_stream_readable.js:555:12)
              at process._tickCallback (internal/process/next_tick.js:63:19)
          npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules/fsevents):
          npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
          
          npm ERR! code ELIFECYCLE
          npm ERR! errno 1
          npm ERR! electron@6.1.12 postinstall: `node install.js`
          npm ERR! Exit status 1
          npm ERR! 
          npm ERR! Failed at the electron@6.1.12 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/2020-07-16T16_06_11_241Z-debug.log
          

          It does look like when it’s trying to download the .zip file it’s getting hung up somewhere. I tried the install 5 or 6 times and each time the download progress will “pause” at a different point, sometimes around 13%, sometimes 20% or 30%, it’ll hang there and then jump to 100%. Not sure if this means something.

          Is there a way to download the file locally and install that way to ensure it’s being downloaded completely? Should I try a different version of electron?

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

            @Diminished7th how is the pi connected to the internet?, wired, wifi?
            have u rebooted your router

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            D 2 Replies Last reply Reply Quote 0
            • D Offline
              Diminished7th @sdetweil
              last edited by

              @sdetweil it’s on wifi. I rebooted the modem and router last night during troubleshooting. I can browse the internet while it’s downloading so the internet appears to be functioning properly. I can unhook everything and wire it up to the router if you think that will help?

              1 Reply Last reply Reply Quote 0
              • D Offline
                Diminished7th @sdetweil
                last edited by Diminished7th

                @sdetweil your first response seems to have been correct! It appears it is some issue with the network. For some reason, it will begin to download the .zip file, but not complete it each time. It’s not that the network is going down because it doesn’t lose connection. Maybe something with the router’s firewall?

                Anyways, I connected the Pi to my phone hotspot and ran the electron install, and it completed just fine and I am up and running.

                If anyone else is having this issue, the telltale sign is the progress bar getting hung up before 100% and then quickly jumping to 100% and then immediately throwing the checksum error.

                Thanks to @sdetweil for the troubleshooting tips! I will be marking as solved!!

                EDIT: Guess I can’t mark as solved. I’ll just let the thread die. :)

                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