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 get MM to start, says it can't find electron, then electron won't start

    Scheduled Pinned Locked Moved Troubleshooting
    49 Posts 5 Posters 34.3k Views 4 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 Do not disturb
      sdetweil @jmartin1009
      last edited by

      @jmartin1009 did u download the MagicMirror folder over again?

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      J 1 Reply Last reply Reply Quote 0
      • J Offline
        jmartin1009 @sdetweil
        last edited by

        @sdetweil yes I deleted the contents of the old folder and changed the name and redownloaded MagicMirror

        S 1 Reply Last reply Reply Quote 0
        • S Do not disturb
          sdetweil @jmartin1009
          last edited by

          @jmartin1009 ok, from the /home/pi folder lets start again

          cd ~
          
          rm -rf whatever_the_old_folder_name_is
          rm -rf MagicMirror
          
          git clone https://github.com/MichMich/MagicMirror.git
          
          cd MagicMirror
          npm install
          

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          J 1 Reply Last reply Reply Quote 0
          • J Offline
            jmartin1009 @sdetweil
            last edited by

            @sdetweil okay I did all of that and it said it cloned and everthing, and then it rebooted during the install, now what? lol

            S 1 Reply Last reply Reply Quote 0
            • S Do not disturb
              sdetweil @jmartin1009
              last edited by

              @jmartin1009 should not reboot

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              J 1 Reply Last reply Reply Quote 0
              • J Offline
                jmartin1009 @sdetweil
                last edited by

                @sdetweil oh it reboots everytime I install magicmirror, how do I prevent this? because it always reboots like 1/3 of the way through the progress bar and it always did it so I thought it was normal lol can I stop this? I have a pi 3+ btw

                J 1 Reply Last reply Reply Quote 0
                • J Offline
                  jmartin1009 @jmartin1009
                  last edited by

                  @jmartin1009 it also does that everytime I try to install electron so maybe that’s why it isn’t working :confused: is there any fix for this?

                  1 Reply Last reply Reply Quote 0
                  • S Do not disturb
                    sdetweil
                    last edited by

                    Sorry, I do not know. Mine never reboots.

                    How big is your memory card?

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    J 2 Replies Last reply Reply Quote 0
                    • J Offline
                      jmartin1009 @sdetweil
                      last edited by

                      @sdetweil 32 gb

                      1 Reply Last reply Reply Quote 0
                      • J Offline
                        jmartin1009 @sdetweil
                        last edited by

                        @sdetweil I believe u figured out why it was restarting, a common cause of it is lack of power, and some person had problems with their keyboard drawing too much power so I unplugged it and it went all the way through without rebooting, but I still got some issues, im left with

                        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.
                        npm WARN tarball cached data for async@~1.5.2 (sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=) seems to be corrupted. Refreshing cache.
                        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! path /home/pi/MagicMirror/node_modules/coffeescript/bin/coffee
                        npm ERR! code ENOENT
                        npm ERR! errno -2
                        npm ERR! syscall chmod
                        npm ERR! enoent ENOENT: no such file or directory, chmod '/home/pi/MagicMirror/node_modules/coffeescript/bin/coffee'
                        npm ERR! enoent This is related to npm not being able to find a file.
                        npm ERR! enoent
                        
                        npm ERR! A complete log of this run can be found in:
                        npm ERR!     /home/pi/.npm/_logs/2019-02-20T04_31_21_244Z-debug.log
                        Unable to install dependencies!
                        
                        S 1 Reply Last reply Reply Quote 0
                        • S Do not disturb
                          sdetweil @jmartin1009
                          last edited by

                          @jmartin1009 I think u need to restart the install

                          Erase the node_modules folder, and do it again

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

                          J 1 Reply Last reply Reply Quote 0
                          • J Offline
                            jmartin1009 @sdetweil
                            last edited by

                            @sdetweil I erased node_modules and reinstalled magicmirror and got this

                            Cloning MagicMirror Done!
                            Installing dependencies ...
                            npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning ENODATA: Cache input stream was empty
                            npm WARN registry Using stale package data from https://registry.npmjs.org/ due to a request error during revalidation.
                            npm ERR! code EINTEGRITY
                            npm ERR! errno EINTEGRITY
                            npm ERR! Invalid response body while trying to fetch https://registry.npmjs.org/feedme: Integrity verification failed for sha512-neorTWnU+xIGoFGw5xKt8oa6Zrp4OIAdLKdTJkmTvESrU1kHYWBEQbxKaFtPAPPX7OiREkBnp0E0/gPN4QnmQg== (/home/pi/.npm/_cacache/content-v2/sha512/9d/ea/2b4d69d4fb1206a051b0e712adf286ba66ba7838801d2ca753264993bc44ab53590761604441bc4a685b4f00f3d7ece891124067a74134fe03cde109e642)
                            
                            npm ERR! A complete log of this run can be found in:
                            npm ERR!     /home/pi/.npm/_logs/2019-02-20T17_49_38_341Z-debug.log
                            Unable to install dependencies!
                            

                            What do I do now?

                            1 Reply Last reply Reply Quote 0
                            • S Do not disturb
                              sdetweil
                              last edited by

                              from the /hom/pi folder do

                              rm -rf .npm
                              cd MagicMirror
                              rm -rf node_modules
                              npm install
                              

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

                              J 1 Reply Last reply Reply Quote 0
                              • J Offline
                                jmartin1009 @sdetweil
                                last edited by

                                @sdetweil I am now given this, what do I do next?

                                MagicMirror installation successful!
                                
                                > magicmirror@2.6.0 install-fonts /home/pi/MagicMirror
                                > cd fonts && npm install
                                
                                added 1 package from 1 contributor and audited 1 package in 5.243s
                                found 0 vulnerabilities
                                
                                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.
                                
                                added 930 packages from 1367 contributors and audited 2433 packages in 160.197s
                                found 23 vulnerabilities (8 low, 14 moderate, 1 high)
                                  run `npm audit fix` to fix them, or `npm audit` for details
                                
                                S 1 Reply Last reply Reply Quote 0
                                • S Do not disturb
                                  sdetweil @jmartin1009
                                  last edited by

                                  @jmartin1009 if your mirror is not accessible from the internet I would not worry about these vulnerabilities.

                                  Sam

                                  How to add modules

                                  learning how to use browser developers window for css changes

                                  J 1 Reply Last reply Reply Quote 0
                                  • J Offline
                                    jmartin1009 @sdetweil
                                    last edited by

                                    @sdetweil does that mean I can’t use any modules that use the internet? im using ssh to do these codes and I plan to use alexa and stuff with it so it will require internet use, so what did you mean by that?

                                    S 1 Reply Last reply Reply Quote 0
                                    • S Do not disturb
                                      sdetweil @jmartin1009
                                      last edited by

                                      @jmartin1009 good point. I would run npm audit to get a list of the issues. These generally end up being challenging to solve completely.

                                      Sam

                                      How to add modules

                                      learning how to use browser developers window for css changes

                                      J 1 Reply Last reply Reply Quote 0
                                      • J Offline
                                        jmartin1009 @sdetweil
                                        last edited by

                                        @sdetweil I ran the audit and then I ran the audit fix and I got this:

                                        found 23 vulnerabilities (8 low, 14 moderate, 1 high) in 2433 scanned packages
                                          run `npm audit fix` to fix 13 of them.
                                          8 vulnerabilities require semver-major dependency updates.
                                          2 vulnerabilities require manual review. See the full report for details.
                                        pi@raspberrypi:~/MagicMirror $ npm audit fix
                                        -bash: pm: command not found
                                        pi@raspberrypi:~/MagicMirror $ npm audit fix
                                        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 WARN grunt-stylelint@0.10.1 requires a peer of stylelint@^9.0.0 but none is installed. You must install peer dependencies yourself.
                                        
                                        + jshint@2.10.1
                                        added 4 packages from 4 contributors, removed 7 packages and updated 13 packages in 39.446s
                                        fixed 13 of 23 vulnerabilities in 2433 scanned packages
                                          2 vulnerabilities required manual review and could not be updated
                                          1 package update for 8 vulns involved breaking changes
                                          (use `npm audit fix --force` to install breaking changes; or refer to `npm audit` for steps to fix these manually)
                                        
                                        
                                           ╭───────────────────────────────────────────────────────────────╮
                                           │                                                               │
                                           │       New minor version of npm available! 6.4.1 → 6.8.0       │
                                           │   Changelog: https://github.com/npm/cli/releases/tag/v6.8.0   │
                                           │               Run npm install -g npm to update!               │
                                           │                                                               │
                                           ╰───────────────────────────────────────────────────────────────╯
                                        

                                        what should I do now?

                                        1 Reply Last reply Reply Quote 0
                                        • S Do not disturb
                                          sdetweil
                                          last edited by

                                          @jmartin1009 I would see what that 1 high priority issue is.

                                          At the bottom it says some breaking changes required to fix one issue. Breaking changes mean other code needs to be changed. So I would stay away from that fix

                                          Sam

                                          How to add modules

                                          learning how to use browser developers window for css changes

                                          J 1 Reply Last reply Reply Quote 0
                                          • J Offline
                                            jmartin1009 @sdetweil
                                            last edited by

                                            @sdetweil I ran the audit again and I believe the fix I did fixed it, but it says I still have 11 vulnerabilities, which are:

                                            pi@raspberrypi:~/MagicMirror $ npm audit
                                            
                                                                   === npm audit security report ===
                                            
                                            # Run  npm install --save-dev stylelint@9.10.1  to resolve 8 vulnerabilities
                                            SEMVER WARNING: Recommended action is a potentially breaking change
                                            ┌───────────────┬──────────────────────────────────────────────────────────────┐
                                            │ Low           │ Regular Expression Denial of Service                         │
                                            ├───────────────┼──────────────────────────────────────────────────────────────┤
                                            │ Package       │ braces                                                       │
                                            ├───────────────┼──────────────────────────────────────────────────────────────┤
                                            │ Dependency of │ stylelint [dev]                                              │
                                            ├───────────────┼──────────────────────────────────────────────────────────────┤
                                            │ Path          │ stylelint > micromatch > braces                              │
                                            ├───────────────���──────────────────────────────────────────────────────────────┤
                                            │ More info     │ https://nodesecurity.io/advisories/786                       │
                                            └───────────────┴──────────────────────────────────────────────────────────────┘
                                            
                                            
                                            ┌───────────────┬──────────────────────────────────────────────────────────────┐
                                            │ Moderate      │ Prototype Pollution                                          │
                                            ├───────────────┼──────────────────────────────────────────────────────────────┤
                                            │ Package       │ lodash                                                       │
                                            ├───────────────┼──────────────────────────────────────────────────────────────┤
                                            │ Dependency of │ stylelint [dev]                                              │
                                            ├───────────────┼──────────────────────────────────────────────────────────────┤
                                            │ Path          │ stylelint > lodash                                           │
                                            ├───────────────┼──────────────────────────────────────────────────────────────┤
                                            │ More info     │ https://nodesecurity.io/advisories/782                       │
                                            └───────────────┴──────────────────────────────────────────────────────────────┘
                                            
                                            
                                            ┌───────────────┬──────────────────────────────────────────────────────────────┐
                                            │ Moderate      │ Prototype Pollution                                          │
                                            ├───────────────┼──────────────────────────────────────────────────────────────┤
                                            │ Package       │ lodash                                                       │
                                            ├───────────────┼──────────────────────────────────────────────────────────────┤
                                            │ Dependency of │ stylelint [dev]                                              │
                                            ├───────────────┼──────────────────────────────────────────────────────────────┤
                                            │ Path          │ stylelint > postcss-reporter > lodash                        │
                                            ├───────────────┼──────────────────────────────────────────────────────────────┤
                                            │ More info     │ https://nodesecurity.io/advisories/782                       │
                                            └───────────────┴──────────────────────────────────────────────────────────────┘
                                            
                                            
                                            ┌───────────────┬──────────────────────────────────────────────────────────────┐
                                            │ Moderate      │ Prototype Pollution                                          │
                                            ├───────────────┼──────────────────────────────────────────────────────────────┤
                                            │ Package       │ lodash                                                       │
                                            ├───────────────┼──────────────────────────────────────────────────────────────┤
                                            │ Dependency of │ stylelint [dev]                                              │
                                            ├───────────────┼──────────────────────────────────────────────────────────────┤
                                            │ Path          │ stylelint > table > lodash                                   │
                                            ├───────────────┼──────────────────────────────────────────────────────────────┤
                                            │ More info     │ https://nodesecurity.io/advisories/782                       │
                                            └───────────────┴──────────────────────────────────────────────────────────────┘
                                            
                                            
                                            ┌───────────────┬──────────────────────────────────────────────────────────────┐
                                            │ Low           │ Prototype Pollution                                          │
                                            ├───────────────┼──────────────────────────────────────────────────────────────┤
                                            │ Package       │ lodash                                                       │
                                            ├───────────────┼──────────────────────────────────────────────────────────────┤
                                            │ Dependency of │ stylelint [dev]                                              │
                                            ├───────────────┼──────────────────────────────────────────────────────────────┤
                                            │ Path          │ stylelint > lodash                                           │
                                            ├───────────────┼──────────────────────────────────────────────────────────────┤
                                            │ More info     │ https://nodesecurity.io/advisories/577                       │
                                            └───────────────┴──────────────────────────────────────────────────────────────┘
                                            
                                            
                                            ┌───────────────┬──────────────────────────────────────────────────────────────┐
                                            │ Low           │ Prototype Pollution                                          │
                                            ├───────────────┼──────────────────────────────────────────────────────────────┤
                                            │ Package       │ lodash                                                       │
                                            ├───────────────┼──────────────────────────────────────────────────────────────┤
                                            │ Dependency of │ stylelint [dev]                                              │
                                            ├───────────────┼──────────────────────────────────────────────────────────────┤
                                            │ Path          │ stylelint > postcss-reporter > lodash                        │
                                            ├───────────────┼──────────────────────────────────────────────────────────────┤
                                            │ More info     │ https://nodesecurity.io/advisories/577                       │
                                            └───────────────┴──────────────────────────────────────────────────────────────┘
                                            
                                            
                                            ┌───────────────┬──────────────────────────────────────────────────────────────┐
                                            │ Low           │ Prototype Pollution                                          │
                                            ├───────────────┼──────────────────────────────────────────────────────────────┤
                                            │ Package       │ lodash                                                       │
                                            ├───────────────┼──────────────────────────────────────────────────────────────┤
                                            │ Dependency of │ stylelint [dev]                                              │
                                            ├───────────────┼──────────────────────────────────────────────────────────────┤
                                            │ Path          │ stylelint > table > lodash                                   │
                                            ├───────────────┼──────────────────────────────────────────────────────────────┤
                                            │ More info     │ https://nodesecurity.io/advisories/577                       │
                                            └───────────────┴──────────────────────────────────────────────────────────────┘
                                            
                                            
                                            ┌───────────────┬──────────────────────────────────────────────────────────────┐
                                            │ Low           │ Cryptographically Weak PRNG                                  │
                                            ├───────────────┼──────────────────────────────────────────────────────────────┤
                                            │ Package       │ randomatic                                                   │
                                            ├───────────────┼──────────────────────────────────────────────────────────────┤
                                            │ Dependency of │ stylelint [dev]                                              │
                                            ├───────────────┼──────────────────────────────────────────────────────────────┤
                                            │ Path          │ stylelint > micromatch > braces > expand-range > fill-range  │
                                            │               │ > randomatic                                                 │
                                            ├───────────────┼──────────────────────────────────────────────────────────────┤
                                            │ More info     │ https://nodesecurity.io/advisories/157                       │
                                            └───────────────┴──────────────────────────────────────────────────────────────┘
                                            
                                            
                                            # Run  npm update lodash --depth 5  to resolve 1 vulnerability
                                            ┌───────────────┬──────────────────────────────────────────────────────────────┐
                                            │ Moderate      │ Prototype Pollution                                          │
                                            ├───────────────┼──────────────────────────────────────────────────────────────┤
                                            │ Package       │ lodash                                                       │
                                            ├───────────────┼──────────────────────────────────────────────────────────────┤
                                            │ Dependency of │ spectron [dev]                                               │
                                            ├───────────────┼──────────────────────────────────────────────────────────────┤
                                            │ Path          │ spectron > webdriverio > gaze > globule > lodash             │
                                            ├───────────────┼──────────────────────────────────────────────────────────────┤
                                            │ More info     │ https://nodesecurity.io/advisories/782                       │
                                            └───────────────┴──────────────────────────────────────────────────────────────┘
                                            
                                            
                                            ┌──────────────────────────────────────────────────────────────────────────────┐
                                            │                                Manual Review                                 │
                                            │            Some vulnerabilities require your attention to resolve            │
                                            │                                                                              │
                                            │         Visit https://go.npm.me/audit-guide for additional guidance          │
                                            └──────────────────────────────────────────────────────────────────────────────┘
                                            ┌───────────────┬──────────────────────────────────────────────────────────────┐
                                            │ Moderate      │ Prototype Pollution                                          │
                                            ├───────────────┼──────────────────────────────────────────────────────────────┤
                                            │ Package       │ lodash                                                       │
                                            ├───────────────┼──────────────────────────────────────────────────────────────┤
                                            │ Patched in    │ >=4.17.11                                                    │
                                            ├───────────────┼──────────────────────────────────────────────────────────────┤
                                            │ Dependency of │ express-ipfilter                                             │
                                            ├───────────────┼──────────────────────────────────────────────────────────────┤
                                            │ Path          │ express-ipfilter > lodash                                    │
                                            ├───────────────┼──────────────────────────────────────────────────────────────┤
                                            │ More info     │ https://nodesecurity.io/advisories/782                       │
                                            └───────────────┴──────────────────────────────────────────────────────────────┘
                                            ┌───────────────┬──────────────────────────────────────────────────────────────┐
                                            │ Low           │ Prototype Pollution                                          │
                                            ├───────────────┼──────────────────────────────────────────────────────────────┤
                                            │ Package       │ lodash                                                       │
                                            ├───────────────┼──────────────────────────────────────────────────────────────┤
                                            │ Patched in    │ >=4.17.5                                                     │
                                            ├───────────────┼──────────────────────────────────────────────────────────────┤
                                            │ Dependency of │ express-ipfilter                                             │
                                            ├───────────────┼──────────────────────────────────────────────────────────────┤
                                            │ Path          │ express-ipfilter > lodash                                    │
                                            ├───────────────┼──────────────────────────────────────────────────────────────┤
                                            │ More info     │ https://nodesecurity.io/advisories/577                       │
                                            └───────────────┴──────────────────────────────────────────────────────────────┘
                                            found 11 vulnerabilities (6 low, 5 moderate) in 2427 scanned packages
                                              run `npm audit fix` to fix 1 of them.
                                              8 vulnerabilities require semver-major dependency updates.
                                              2 vulnerabilities require manual review. See the full report for details.
                                            

                                            sorry for it being long, just easiest to copy and paste over from the ssh lol

                                            1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 3
                                            • 2 / 3
                                            • 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