• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

Need some help installing on Win10

Scheduled Pinned Locked Moved Unsolved Troubleshooting
12 Posts 2 Posters 2.7k 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.
  • C Offline
    CheapDad
    last edited by Aug 9, 2022, 10:20 PM

    I’m in the process of installing the MM software on my daughter’s laptop as an interim solution until I can build her a proper mirror.

    I followed the following instructions:

    https://forum.magicmirror.builders/topic/4089/complete-walkthrough-install-magicmirror-on-a-pc-windows-7-10
    

    I completed the npm install step and then ran npm start. I then got this error:

    > magicmirror@2.20.0 start
    > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
    
    'DISPLAY' is not recognized as an internal or external command, operable program or batch file.
    

    Based upon the guidance in this thread:

    https://forum.magicmirror.builders/topic/12543/installing-magic-mirror-on-windows-10?lang=en-US&page=1
    

    I edited out the “DISPLAY” entries. I re-ran npm start and got this:

    > magicmirror@2.20.0 start
    > node_modules/.bin/electron js/electron.js
    
    'node_modules' is not recognized as an internal or external command,
    operable program or batch file.
    

    I’m stuck. Can anyone help?

    S 1 Reply Last reply Aug 9, 2022, 11:23 PM Reply Quote 0
    • S Offline
      sdetweil @CheapDad
      last edited by sdetweil Aug 9, 2022, 11:23 PM Aug 9, 2022, 11:23 PM

      @CheapDad yes npm screwed it up for windows.

      change each / to \\

      on the start clause unedited the display off of

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      C 1 Reply Last reply Aug 10, 2022, 12:00 AM Reply Quote 0
      • C Offline
        CheapDad @sdetweil
        last edited by Aug 10, 2022, 12:00 AM

        @sdetweil Sam, add the display entries back in? Otherwise, is this correct?

        	"start": "node_modules\\.bin/electron js\\electron.js",
        		"start:dev": "node_modules\\.bin/electron js\\electron.js dev",
        
        S 1 Reply Last reply Aug 10, 2022, 12:01 AM Reply Quote 0
        • S Offline
          sdetweil @CheapDad
          last edited by sdetweil Aug 10, 2022, 12:01 AM Aug 10, 2022, 12:01 AM

          @CheapDad said in Need some help installing on Win10:

          “start”: “node_modules\\.bin/electron js\\electron.js”,

          all of the \

          u missed the bin/electron

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          C 1 Reply Last reply Aug 10, 2022, 12:58 AM Reply Quote 0
          • C Offline
            CheapDad @sdetweil
            last edited by Aug 10, 2022, 12:58 AM

            @sdetweil Sam, I made those corrections and edited the config.js. I commented out all of the modules except the clock. (My intent is to only have one module, not yet installed, running.)

            When I did an npm start with only the sample config.js present, I got a black screen. I could press “alt” to get to the “File” menu and close MM.

            When I ran MM from Git BASH, I got another black screen, except this time “alt” did not do anything. “alt” and “esc” would minimize MM, but that’s it. Here’s what GIT BASH displays when I ran npm start with my edited config.js:

            $ npm start
            npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
            
            > magicmirror@2.20.0 start
            > node_modules\.bin\electron js\electron.js
            
            
            [09.08.2022 20:50.32.077] [LOG]   Starting MagicMirror: v2.20.0
            [09.08.2022 20:50.32.082] [LOG]   Loading config ...
            [09.08.2022 20:50.32.091] [LOG]   Loading module helpers ...
            [09.08.2022 20:50.32.092] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: TypeError: Cannot read properties of undefined (reading 'split')
            [09.08.2022 20:50.32.093] [LOG]   Loading module helpers ...
            [09.08.2022 20:50.32.094] [ERROR] App threw an error during load
            [09.08.2022 20:50.32.095] [ERROR] TypeError: Cannot read properties of undefined (reading 'split')
                at loadModule (C:\Users\Hannah\magicmirror\js\app.js:108:27)
                at loadNextModule (C:\Users\Hannah\magicmirror\js\app.js:165:5)
                at loadModules (C:\Users\Hannah\magicmirror\js\app.js:176:3)
                at C:\Users\Hannah\magicmirror\js\app.js:225:4
                at loadConfig (C:\Users\Hannah\magicmirror\js\app.js:81:4)
                at App.start (C:\Users\Hannah\magicmirror\js\app.js:212:3)
                at Object.<anonymous> (C:\Users\Hannah\magicmirror\js\electron.js:159:7)
                at Module._compile (node:internal/modules/cjs/loader:1118:14)
                at Module._extensions..js (node:internal/modules/cjs/loader:1173:10)
                at Module.load (node:internal/modules/cjs/loader:988:32)
            [09.08.2022 20:50.32.097] [ERROR] Whoops! There was an uncaught exception...
            [09.08.2022 20:50.32.101] [ERROR] TypeError: Cannot read properties of undefined (reading 'split')
                at loadModule (C:\Users\Hannah\magicmirror\js\app.js:108:27)
                at loadNextModule (C:\Users\Hannah\magicmirror\js\app.js:165:5)
                at loadModules (C:\Users\Hannah\magicmirror\js\app.js:176:3)
                at C:\Users\Hannah\magicmirror\js\app.js:225:4
                at loadConfig (C:\Users\Hannah\magicmirror\js\app.js:81:4)
                at App.start (C:\Users\Hannah\magicmirror\js\app.js:212:3)
                at Object.<anonymous> (C:\Users\Hannah\magicmirror\js\electron.js:159:7)
                at Module._compile (node:internal/modules/cjs/loader:1118:14)
                at Module._extensions..js (node:internal/modules/cjs/loader:1173:10)
                at Module.load (node:internal/modules/cjs/loader:988:32)
            [09.08.2022 20:50.32.103] [ERROR] MagicMirror┬▓ will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
            [09.08.2022 20:50.32.104] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
            [09.08.2022 20:50.32.201] [LOG]   Launching application.
            [11036:0809/205232.493:ERROR:gpu_init.cc(481)] Passthrough is not supported, GL is disabled, ANGLE is
            
            S 1 Reply Last reply Aug 10, 2022, 1:26 AM Reply Quote 0
            • S Offline
              sdetweil @CheapDad
              last edited by Aug 10, 2022, 1:26 AM

              @CheapDad usually this is a bad position string

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              C 1 Reply Last reply Aug 10, 2022, 2:15 PM Reply Quote 0
              • C Offline
                CheapDad @sdetweil
                last edited by Aug 10, 2022, 2:15 PM

                @sdetweil said in Need some help installing on Win10:

                @CheapDad usually this is a bad position string

                Sam, my apologies but I have no idea what this means. A google search didn’t reveal anything that appeared to be on point either.

                S 1 Reply Last reply Aug 10, 2022, 2:21 PM Reply Quote 0
                • S Offline
                  sdetweil @CheapDad
                  last edited by sdetweil Aug 10, 2022, 2:22 PM Aug 10, 2022, 2:21 PM

                  @CheapDad

                     {
                          module: ",,,,,,",
                          position: "xxx_yyy",   <----- that thing  (the 'position' string
                  

                  or mis-spelling ‘position’

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  C 1 Reply Last reply Aug 10, 2022, 2:33 PM Reply Quote 0
                  • C Offline
                    CheapDad @sdetweil
                    last edited by Aug 10, 2022, 2:33 PM

                    @sdetweil Thank you! Two other questions:

                    1. I assume that since this latest black screen occurred after I used my edited config.js, that’s where I need to look for the error. Correct?

                    2. Once that correction is made, should I then see the MM running in a window? I ask because I had received a black screen previously using the sample config.js

                    S 1 Reply Last reply Aug 10, 2022, 2:41 PM Reply Quote 0
                    • S Offline
                      sdetweil @CheapDad
                      last edited by sdetweil Aug 10, 2022, 2:42 PM Aug 10, 2022, 2:41 PM

                      @CheapDad you did the two extra steps to install in fonts and vendor , right?

                      the sample config should work unchanged
                      it should be the same as on linux… full screen…

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      C 1 Reply Last reply Aug 10, 2022, 2:58 PM Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        1/12
                        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