• 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.

Complete Walkthrough - Install MagicMirror on a PC - Windows 7/10

Scheduled Pinned Locked Moved Troubleshooting
324 Posts 55 Posters 649.5k Views 59 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.
  • B Offline
    blake_northrup @OldShaterhan
    last edited by Jul 7, 2020, 6:12 PM

    @OldShaterhan

    I just made the change, and this is what I get when trying npm start:

    $ npm start

    magicmirror@2.12.0 start C:\Users\blake\MagicMirror
    run-start.sh

    ‘run-start.sh’ is not recognized as an internal or external command,
    operable program or batch file.
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! magicmirror@2.12.0 start: run-start.sh
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the magicmirror@2.12.0 start 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! C:\Users\blake\AppData\Roaming\npm-cache_logs\2020-07-07T18_11_04_725Z-debug.log

    S 1 Reply Last reply Jul 7, 2020, 7:25 PM Reply Quote 0
    • B Offline
      blake_northrup @dwburger
      last edited by Jul 7, 2020, 6:27 PM

      @dwburger said in Complete Walkthrough - Install MagicMirror on a PC - Windows 7/10:

      “node_modules/.bin/electron js/electron.js”

      Thank you dwburger! This fixed my issue!

      1 Reply Last reply Reply Quote 0
      • B Offline
        blake_northrup
        last edited by Jul 7, 2020, 6:56 PM

        I guess I spoke too soon. npm starts, but I have a blank screen. Haven’t done anything to the config.js file, except make a copy of the config.js.sample, and removed the .sample. See output:

        $ npm run config:check

        magicmirror@2.12.0 config:check C:\Users\blake\MagicMirror
        node js/check_config.js

        [2020-07-07 13:50:13.582] [INFO] Checking file… C:\Users\blake\MagicMirror\config\config.js
        [2020-07-07 13:50:13.630] [LOG] Line 1 col 1 Definition for rule ‘prettier/prettier’ was not found.
        C:\Users\blake\MagicMirror\js\check_config.js:66
        throw new Error(“Wrong syntax in config file!”);
        ^

        Error: Wrong syntax in config file!
        at C:\Users\blake\MagicMirror\js\check_config.js:66:10
        at FSReqCallback.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:63:3)
        npm ERR! code ELIFECYCLE
        npm ERR! errno 1
        npm ERR! magicmirror@2.12.0 config:check: node js/check_config.js
        npm ERR! Exit status 1
        npm ERR!
        npm ERR! Failed at the magicmirror@2.12.0 config:check 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! C:\Users\blake\AppData\Roaming\npm-cache_logs\2020-07-07T18_50_13_660Z-debug.log

        S 1 Reply Last reply Jul 7, 2020, 7:28 PM Reply Quote 0
        • S Offline
          sdetweil @blake_northrup
          last edited by sdetweil Jul 7, 2020, 7:25 PM Jul 7, 2020, 7:25 PM

          @blake_northrup not run-start

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

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 1
          • S Offline
            sdetweil @blake_northrup
            last edited by sdetweil Jul 7, 2020, 7:30 PM Jul 7, 2020, 7:28 PM

            @blake_northrup because u installed on windows, there are a couple extra steps

            cd MagicMirror
            cd vendor
            npm install
            cd …\fonts. 2dots
            npm install
            cd … 2dot

            the npm start

            this phone editor will not let me enter 2 dots, displays as 3

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            B 3 Replies Last reply Jul 8, 2020, 12:54 PM Reply Quote 2
            • B Offline
              blake_northrup @sdetweil
              last edited by Jul 8, 2020, 12:54 PM

              @sdetweil Thank you sdetweil. I will try thins now, and let you know.

              1 Reply Last reply Reply Quote 0
              • B Offline
                blake_northrup @sdetweil
                last edited by Jul 8, 2020, 1:03 PM

                @sdetweil Still getting black screen after performing these steps. For some reason, it is stating that I have the wrong syntax in the config file.

                $ npm run config:check

                magicmirror@2.12.0 config:check C:\Users\blake\MagicMirror
                node js/check_config.js

                [2020-07-08 07:59:36.797] [INFO] Checking file… C:\Users\blake\MagicMirror\config\config.js
                [2020-07-08 07:59:36.854] [LOG] Line 1 col 1 Definition for rule ‘prettier/prettier’ was not found.
                C:\Users\blake\MagicMirror\js\check_config.js:66
                throw new Error(“Wrong syntax in config file!”);
                ^

                Error: Wrong syntax in config file!
                at C:\Users\blake\MagicMirror\js\check_config.js:66:10
                at FSReqCallback.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:63:3)
                npm ERR! code ELIFECYCLE
                npm ERR! errno 1
                npm ERR! magicmirror@2.12.0 config:check: node js/check_config.js
                npm ERR! Exit status 1
                npm ERR!
                npm ERR! Failed at the magicmirror@2.12.0 config:check 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! C:\Users\blake\AppData\Roaming\npm-cache_logs\2020-07-08T12_59_36_872Z-debug.log

                1 Reply Last reply Reply Quote 0
                • B Offline
                  blake_northrup @sdetweil
                  last edited by Jul 8, 2020, 1:15 PM

                  @sdetweil Nevermind. All is now working. Had an extra bit of info in my config file that didn’t need to be there. Thanks again for all of your help sdetweil!

                  D 1 Reply Last reply Jul 14, 2020, 1:01 AM Reply Quote 0
                  • D Offline
                    dphotograph @blake_northrup
                    last edited by Jul 14, 2020, 1:01 AM

                    @blake_northrup

                    Hi,
                    what was your “extra bit of info in my config file” ? i haf the same error and dont find an error with my config file on my new installed MagicMirror

                    Thanks :-)

                    B 1 Reply Last reply Jul 14, 2020, 12:44 PM Reply Quote 0
                    • B Offline
                      blake_northrup @dphotograph
                      last edited by Jul 14, 2020, 12:44 PM

                      @dphotograph Hey dphotograph, I had somehow copied the bottom part twice, and that was my problem. I just copied the config sample again, and built all of my modules, one by one.

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 12
                      • 13
                      • 14
                      • 15
                      • 16
                      • 32
                      • 33
                      • 14 / 33
                      14 / 33
                      • First post
                        132/324
                        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