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.

    Issues installing on rpi2

    Scheduled Pinned Locked Moved Troubleshooting
    7 Posts 3 Posters 352 Views 1 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.
    • K Offline
      K-w-b
      last edited by

      Hi folks,
      tried to setup a new MM version on a rpi2. Followed every step in the (current) manual installation procedure, but it fails every time. Tried to reinstall and add features several times, now I do not know what to do next… any idea?

      Here are the logs from ‘npm install’

      pi@raspberrypi:~/MagicMirror $ npm install
      
      > electron-chromedriver@6.0.0 install /home/pi/MagicMirror/node_modules/electron-chromedriver
      > node ./download-chromedriver.js
      
      internal/modules/cjs/loader.js:638
          throw err;
          ^
      
      Error: Cannot find module 'debug'
          at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
          at Function.Module._load (internal/modules/cjs/loader.js:562:25)
          at Module.require (internal/modules/cjs/loader.js:692:17)
          at require (internal/modules/cjs/helpers.js:25:18)
          at Object.<anonymous> (/home/pi/MagicMirror/node_modules/electron-download/lib/index.js:4:15)
          at Module._compile (internal/modules/cjs/loader.js:778:30)
          at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
          at Module.load (internal/modules/cjs/loader.js:653:32)
          at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
          at Function.Module._load (internal/modules/cjs/loader.js:585:3)
      npm ERR! code ELIFECYCLE
      npm ERR! errno 1
      npm ERR! electron-chromedriver@6.0.0 install: `node ./download-chromedriver.js`
      npm ERR! Exit status 1
      npm ERR! 
      npm ERR! Failed at the electron-chromedriver@6.0.0 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/pi/.npm/_logs/2020-04-15T07_19_42_745Z-debug.log
      pi@raspberrypi:~/MagicMirror $ node ./download-chromedriver.js
      internal/modules/cjs/loader.js:638
          throw err;
          ^
      
      Error: Cannot find module '/home/pi/MagicMirror/download-chromedriver.js'
          at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
          at Function.Module._load (internal/modules/cjs/loader.js:562:25)
          at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
          at startup (internal/bootstrap/node.js:283:19)
          at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
      

      and as this seems to be related to electron the log for: ‘npm install electron@6.0.12’

      pi@raspberrypi:~/MagicMirror $ npm install electron@6.0.12
      
      > electron-chromedriver@6.0.0 install /home/pi/MagicMirror/node_modules/electron-chromedriver
      > node ./download-chromedriver.js
      
      internal/modules/cjs/loader.js:638
          throw err;
          ^
      
      Error: Cannot find module 'debug'
          at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
          at Function.Module._load (internal/modules/cjs/loader.js:562:25)
          at Module.require (internal/modules/cjs/loader.js:692:17)
          at require (internal/modules/cjs/helpers.js:25:18)
          at Object.<anonymous> (/home/pi/MagicMirror/node_modules/electron-download/lib/index.js:4:15)
          at Module._compile (internal/modules/cjs/loader.js:778:30)
          at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
          at Module.load (internal/modules/cjs/loader.js:653:32)
          at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
          at Function.Module._load (internal/modules/cjs/loader.js:585:3)
      npm WARN grunt-eslint@22.0.0 requires a peer of grunt@>=1 but none is installed. You must install peer dependencies yourself.
      npm WARN grunt-stylelint@0.14.0 requires a peer of stylelint@^13.2.0 but none is installed. You must install peer dependencies yourself.
      npm WARN grunt-yamllint@0.3.0 requires a peer of grunt@>=1.0.1 but none is installed. You must install peer dependencies yourself.
      npm WARN stylelint-config-recommended@3.0.0 requires a peer of stylelint@>=10.1.0 but none is installed. You must install peer dependencies yourself.
      npm WARN stylelint-config-standard@20.0.0 requires a peer of stylelint@>=10.1.0 but none is installed. You must install peer dependencies yourself.
      
      npm ERR! code ELIFECYCLE
      npm ERR! errno 1
      npm ERR! electron-chromedriver@6.0.0 install: `node ./download-chromedriver.js`
      npm ERR! Exit status 1
      npm ERR! 
      npm ERR! Failed at the electron-chromedriver@6.0.0 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/pi/.npm/_logs/2020-04-15T07_22_40_386Z-debug.log
      
      1 Reply Last reply Reply Quote 0
      • MichMichM Offline
        MichMich Admin
        last edited by

        What version of NPM are you using? npm -v

        1 Reply Last reply Reply Quote 0
        • K Offline
          K-w-b
          last edited by

          Running on 6.14.4’

          pi@raspberrypi:~ $ npm version
          { npm: '6.14.4',
            ares: '1.15.0',
            brotli: '1.0.7',
            cldr: '35.1',
            http_parser: '2.9.3',
            icu: '64.2',
            modules: '64',
            napi: '6',
            nghttp2: '1.39.2',
            node: '10.20.1',
            openssl: '1.1.1e',
            tz: '2019c',
            unicode: '12.1',
            uv: '1.34.2',
            v8: '6.8.275.32-node.56',
            zlib: '1.2.11' }
          
          1 Reply Last reply Reply Quote 0
          • MichMichM Offline
            MichMich Admin
            last edited by

            Tha’s weird. You could try installing ‘debug’:

            npm install debug
            
            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @MichMich
              last edited by sdetweil

              @MichMich @K-w-b its because he is on a pi2, armv6l…

              he needs to do
              npm install --only=prod
              to NOT try to load the chromedriver, which doesn’t exist… (same as our optional dependency for electron on armv6l) (I think its spectron which is dragging in the chromedriver)

              @K-w-b please use the automated install script… it fixes a bunch of problems om armv6l systems.
              see here , https://github.com/sdetweil/MagicMirror_scripts
              read the readme online for the command to issue…
              u will need to erase the MagicMirror folder to run install again

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • K Offline
                K-w-b
                last edited by

                thank you @MichMich and @sdetweil for the responsed.

                before I saw Sam’s notice, I wiped the SD card again and started with a new raspbian version from scratch. Everything from the manual installation worked fine now - MM launches. The only thing I might have done different is rebooting raspbi after upgrading sudo apt full-upgrade - Needless to say that this is a major facepalm on my side.
                So to whoever reads this in the future - follow the instructions shown on the screen (!)

                S 1 Reply Last reply Reply Quote 0
                • S Offline
                  sdetweil @K-w-b
                  last edited by

                  @K-w-b great news!!,

                  which raspian version were u trying and which worked?

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

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