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.

    Setup script fails

    Scheduled Pinned Locked Moved Solved Troubleshooting
    18 Posts 6 Posters 7.0k Views 6 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.
    • S Offline
      sdetweil @qtin
      last edited by

      @qtin can u tell us the difference between the two pi devices?

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      Q 1 Reply Last reply Reply Quote 0
      • Q Offline
        qtin @sdetweil
        last edited by

        @sdetweil

        Hi Sam

        Thanks for the response. There are no differences other than hardware. I used the exact same Raspbian (NOOBS) image, installed from scratch and followed the same steps.
        Only difference is that I installed it on the Pi2 earlier last week, and on the Pi3 a few days later.

        I will get another SD Card and try it again on the Pi2 and see if it has the same issue now.

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

          @qtin thanks…

          can u do a

          uname -a
          

          on each for me

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • Q Offline
            qtin
            last edited by

            @sdetweil , I’ve checked both Pi2 and Pi3 and they both return the following - exactly the same:

            pi@raspberrypi:~ $ uname -a
            Linux raspberrypi 4.19.50-v7+ #896 SMP Thu Jun 20 16:11:44 BST 2019 armv7l GNU/Linux
            
            
            1 Reply Last reply Reply Quote 0
            • T Offline
              tcsabina
              last edited by

              Just some random thoughts:
              Are the update/install servers are the same for the 2 RPis?
              /etc/apt??? (not sure about the exact path…) is the location of the files that defines the update servers.

              Do they gave the same internet access? No problem accessing any website on the problematic one?

              1 Reply Last reply Reply Quote 0
              • Q Offline
                qtin
                last edited by

                @tcsabina

                Thanks for the suggestion but I managed to get it to work with help from @sdetweil on my other forum post.

                Steps to follow are as follow:

                sudo npm i -g npm
                
                cd MagicMirror
                
                1. (Inside the MagicMirror directory)
                rm -rf node_modules/
                
                1. (Inside the MagicMirror directory)
                npm install
                

                All done :-)

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

                  @qtin cool! Thanks for the update!

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    dpuckett @qtin
                    last edited by

                    root@raspberrypi:~/MagicMirror# npm install
                    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 @types/vfile-message@2.0.0: This is a stub types definition. vfile-message provides its own type definitions, so you do not need this installed.

                    electron-chromedriver@1.8.0 install /root/MagicMirror/node_modules/electron-chromedriver
                    node ./download-chromedriver.js

                    internal/modules/cjs/loader.js:964
                    throw err;
                    ^

                    Error: Cannot find module ‘/root/MagicMirror/node_modules/electron-chromedriver/download-chromedriver.js’
                    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:961:17)
                    at Function.Module._load (internal/modules/cjs/loader.js:854:27)
                    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
                    at internal/main/run_main_module.js:17:47 {
                    code: ‘MODULE_NOT_FOUND’,
                    requireStack: []
                    }
                    npm WARN grunt-stylelint@0.12.0 requires a peer of stylelint@^11.0.0 but none is installed. You must install peer dependencies yourself.
                    npm WARN acorn-jsx@5.1.0 requires a peer of acorn@^6.0.0 || ^7.0.0 but none is installed. You must install peer dependencies yourself.

                    npm ERR! code ELIFECYCLE
                    npm ERR! errno 1
                    npm ERR! electron-chromedriver@1.8.0 install: node ./download-chromedriver.js
                    npm ERR! Exit status 1
                    npm ERR!
                    npm ERR! Failed at the electron-chromedriver@1.8.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! /root/.npm/_logs/2019-12-07T00_55_07_956Z-debug.log
                    root@raspberrypi:~/MagicMirror#

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

                      @dpuckett please rename the MagicMirror folder out of the way and use the install script

                      see https://forum.magicmirror.builders/topic/10171/anyone-want-to-try-updated-installer

                      for the install command string

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      A 1 Reply Last reply Reply Quote 0
                      • A Offline
                        ant62130 @sdetweil
                        last edited by

                        @sdetweil Hi,

                        I have exactly the same error as @dpuckett on my freshly installed Raspberry Pi 3B+ :

                        I runned the install script :

                        root@raspberrypi:~# bash -c "$(curl -sL https://www.dropbox.com/s/rlh710ng0zwv3vp/raspberry.sh?dl=0)"
                        
                        $$\      $$\                     $$\           $$\      $$\ $$\                                          $$$$$$\
                        $$$\    $$$ |                    \__|          $$$\    $$$ |\__|                                        $$  __$$\
                        $$$$\  $$$$ | $$$$$$\   $$$$$$\  $$\  $$$$$$$\ $$$$\  $$$$ |$$\  $$$$$$\   $$$$$$\   $$$$$$\   $$$$$$\  \__/  $$ |
                        $$\$$\$$ $$ | \____$$\ $$  __$$\ $$ |$$  _____|$$\$$\$$ $$ |$$ |$$  __$$\ $$  __$$\ $$  __$$\ $$  __$$\  $$$$$$  |
                        $$ \$$$  $$ | $$$$$$$ |$$ /  $$ |$$ |$$ /      $$ \$$$  $$ |$$ |$$ |  \__|$$ |  \__|$$ /  $$ |$$ |  \__|$$  ____/
                        $$ |\$  /$$ |$$  __$$ |$$ |  $$ |$$ |$$ |      $$ |\$  /$$ |$$ |$$ |      $$ |      $$ |  $$ |$$ |      $$ |
                        $$ | \_/ $$ |\$$$$$$$ |\$$$$$$$ |$$ |\$$$$$$$\ $$ | \_/ $$ |$$ |$$ |      $$ |      \$$$$$$  |$$ |      $$$$$$$$\
                        \__|     \__| \_______| \____$$ |\__| \_______|\__|     \__|\__|\__|      \__|       \______/ \__|      \________|
                                               $$\   $$ |
                                               \$$$$$$  |
                                                \______/
                        
                        install log being saved to /root/install.log
                        No LSB modules are available.
                        Updating packages ...
                        Installing helper tools ...
                        Lecture des listes de paquets... Fait
                        Construction de l'arbre des dépendances       
                        Lecture des informations d'état... Fait
                        build-essential est déjà la version la plus récente (12.6).
                        curl est déjà la version la plus récente (7.64.0-4).
                        git est déjà la version la plus récente (1:2.20.1-2+deb10u1).
                        unzip est déjà la version la plus récente (6.0-23+deb10u1).
                        wget est déjà la version la plus récente (1.20.1-1.1).
                        Le paquet suivant a été installé automatiquement et n'est plus nécessaire :
                          point-rpi
                        Veuillez utiliser « sudo apt autoremove » pour le supprimer.
                        0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
                        Check current Node installation ...
                        Node currently installed. Checking version number.
                        Minimum Node version: v10.1.0
                        Installed Node version: v10.15.2
                        No Node.js upgrade necessary.
                        Check current NPM installation ...
                        NPM currently installed. Checking version number.
                        Minimum npm version: V6.0.0
                        Installed npm version: V6.13.4
                        No npm upgrade necessary.
                        Cloning MagicMirror ...
                        Clonage dans 'MagicMirror'...
                        remote: Enumerating objects: 331, done.
                        remote: Counting objects: 100% (331/331), done.
                        remote: Compressing objects: 100% (295/295), done.
                        remote: Total 331 (delta 40), reused 198 (delta 22), pack-reused 0
                        Réception d'objets: 100% (331/331), 662.32 KiB | 589.00 KiB/s, fait.
                        Résolution des deltas: 100% (40/40), fait.
                        Cloning MagicMirror Done!
                        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 @types/vfile-message@2.0.0: This is a stub types definition. vfile-message provides its own type definitions, so you do not need this installed.
                        
                        > electron-chromedriver@1.8.0 install /root/MagicMirror/node_modules/electron-chromedriver
                        > node ./download-chromedriver.js
                        
                        internal/modules/cjs/loader.js:583
                            throw err;
                            ^
                        
                        Error: Cannot find module '/root/MagicMirror/node_modules/electron-chromedriver/download-chromedriver.js'
                            at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
                            at Function.Module._load (internal/modules/cjs/loader.js:507:25)
                            at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
                            at startup (internal/bootstrap/node.js:283:19)
                            at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3)
                        npm WARN acorn-jsx@5.1.0 requires a peer of acorn@^6.0.0 || ^7.0.0 but none is installed. You must install peer dependencies yourself.
                        
                        npm ERR! code ELIFECYCLE
                        npm ERR! errno 1
                        npm ERR! electron-chromedriver@1.8.0 install: `node ./download-chromedriver.js`
                        npm ERR! Exit status 1
                        npm ERR! 
                        npm ERR! Failed at the electron-chromedriver@1.8.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!     /root/.npm/_logs/2019-12-12T17_09_00_128Z-debug.log
                        Unable to install dependencies!
                        root@raspberrypi:~# uname -a
                        Linux raspberrypi 4.19.75-v7+ #1270 SMP Tue Sep 24 18:45:11 BST 2019 armv7l GNU/Linux
                        root@raspberrypi:~# 
                        
                        

                        I tried to execute the command of @tcsabina which worked for him/her but no result :
                        "
                        sudo npm i -g npm
                        cd MagicMirror
                        (Inside the MagicMirror directory)
                        rm -rf node_modules/
                        (Inside the MagicMirror directory)
                        npm install
                        All done 🙂
                        "

                        Thanks

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