MagicMirror² v2.5.0 is available! For more information about this release, check out this topic.

Error on clean installation using npm install: electron-chromedriver@1.7.1



  • I’m doing a clean installation on an arm64 Alt-SBC running Debian Stretch (latest), Node v9.4.0, npm v5.6.0, and pm2 v2.9.3.

    I ran the following:

    npm install

    and received the following:

    >electron-chromedriver@1.7.1 install /home/******/MagicMirror/node_modules/spectron/node_modules/electron-chromedriver
    >node ./download-chromedriver.js

    /home/******/MagicMirror/node_modules/spectron/node_modules/electron-chromedriver/download-chromedriver.js:16
    if (error != null) throw error
    ^

    Error: Failed to find Electron v1.7.0 for linux-arm64 at https://github.com/electron/electron/releases/download/v1.7.0/chromedriver-v1.7.0-linux-arm64.zip
    at Request. (/home//MagicMirror/node_modules/nugget/index.js:169:61)
    at Request.emit (events.js:160:13)
    at Request.onRequestResponse (/home/
    /MagicMirror/node_modules/request/request.js:1068:10)
    at ClientRequest.emit (events.js:160:13)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:548:21)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:115:23)
    at TLSSocket.socketOnData (_http_client.js:439:20)
    at TLSSocket.emit (events.js:160:13)
    at addChunk (_stream_readable.js:269:12)
    at readableAddChunk (_stream_readable.js:256:11)
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! electron-chromedriver@1.7.1 install: node ./download-chromedriver.js
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the electron-chromedriver@1.7.1 install 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/******/.npm/_logs/2018-01-24T22_13_32_115Z-debug.log

    When I go look at the electron/chromedriver releases, there is no 1.7.1 candidate for arm64. Any ideas on how to make the installation more platform agnostic and updated to the latest stable electron?

    FWIW: the SBC is a Pine Rock64.

    I’m willing to put in the work if someone can coach me through some of the pi-specific decisions.



  • @devinhedge did some digging. There is a bug in the install script.

    The install script looks for the following: https://github.com/electron/electron/releases/download/v1.7.0/chromedriver-v1.7.0-linux-arm64.zip

    There is no v1.7.0 of electron. There is a v1.7.1 of Electron.

    Electron v.1.7.0 was removed for some reason.



  • Is there any progress or different approach available for an installation on a Rock64?
    Both 7.0 and 7.1 of the chromium webdrivwr are unavailable.

    Love to have this working on the Rock64.



  • @kennetht To bad that there is no response to this issue.
    Although I have little to no knowledge on how to solve this, my gut feeling tells me some install script needs to be updated and pointed to a newer electron installation.



  • @kennetht - Have you tried installing Electron manually with a version that exists and then running the npm install process again? I don’t think the script requires a specific version of electron. The next version up will probably work.



  • Stacy Webb changed the script yesterday to address this issue. I’ve tested it with a clean install, but still it didn’t work.
    I have to try and manually install and see where there’s a problem.
    Only my knowledge of Linux is not that good at this point in time.