MagicMirror Forum
    • 最新
    • 標籤
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • 註冊
    • 登入
    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

    已排程 已置頂 已鎖定 已移動 Troubleshooting
    324 貼文 55 Posters 783.4k 瀏覽 59 Watching
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • S 離線
      sdetweil @Uwe Kretsen
      最後由 sdetweil 編輯

      @Uwe-Kretsen do not install under mingw, just open a command prompt/ powershell prompt and do the git clone/npm install

      u need git of course and node/npm (google how to install)

      then u need to do some more steps as the setup is for linux

      cd MagicMirror
      cd vendor
      npm install
      cd ..
      cd fonts
      npm install
      cd ..
      

      then edit package.json and change the start line
      from

      		"start": "DISPLAY=\"${DISPLAY:=:0}\" ./node_modules/.bin/electron js/electron.js",
      

      to

      		"start": "node_modules/.bin/electron js/electron.js",
      

      then npm start works as expected

      also, you must manually copy the MagicMirror/config/config.js.sample to the initial config.js
      also create the empty MagicMirror/css/custom.css

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      U B A M 4 條回覆 最後回覆 回覆 引用 2
      • U 離線
        Uwe Kretsen @sdetweil
        最後由 編輯

        @sdetweil Dear Sam, thank you for the help - it start to work. I am really grateful fro support.
        Now I will spend some days or weeks :-) to find out how to add /remove extra modules. hope to do my MagicMirror project to the end.
        once again thank you
        and stay healthy
        BR Uwe

        S 1 條回覆 最後回覆 回覆 引用 0
        • S 離線
          sdetweil @Uwe Kretsen
          最後由 編輯

          @Uwe-Kretsen see the links in my signature , they will help you

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 條回覆 最後回覆 回覆 引用 0
          • B 離線
            bhumin
            最後由 編輯

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

            git clone https://github.com/MichMich/MagicMirror.git

            following error arrives when start

            magicmirror@2.13.0 start C:\Users\bhumi\MagicMirror
            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.
            npm ERR! code ELIFECYCLE
            npm ERR! errno 1
            npm ERR! magicmirror@2.13.0 start: DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
            npm ERR! Exit status 1
            npm ERR!
            npm ERR! Failed at the magicmirror@2.13.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\bhumi\AppData\Roaming\npm-cache_logs\2020-12-16T05_04_47_316Z-debug.log

            1 條回覆 最後回覆 回覆 引用 0
            • B 離線
              bhumin @sdetweil
              最後由 編輯

              @sdetweil thanks man

              1 條回覆 最後回覆 回覆 引用 0
              • H 離線
                Humez
                最後由 編輯

                Thank you for your tutorial! I’m a absolute beginner. I followed the steps above but when I try to start magicmirror I get the below message:
                magicmirror@2.14.0 start C:\Users\1234\magicmirror

                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.
                npm ERR! code ELIFECYCLE
                npm ERR! errno 1
                npm ERR! magicmirror@2.14.0 start: DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
                npm ERR! Exit status 1
                npm ERR!
                npm ERR! Failed at the magicmirror@2.14.0 start script.
                npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

                S 1 條回覆 最後回覆 回覆 引用 0
                • S 離線
                  sdetweil @Humez
                  最後由 編輯

                  @humez read and follow the steps here

                  https://forum.magicmirror.builders/topic/4089/complete-walkthrough-install-magicmirror-on-a-pc-windows-7-10/141?_=1612997713585

                  u have not edited package.json as required

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 條回覆 最後回覆 回覆 引用 1
                  • K 離線
                    kithaam
                    最後由 編輯

                    Hi Please help install Magic Mirror on my PC please assist with below

                    http://localhost:8080 is just a black screen No date and Time on

                    !f250c354-bbc7-411e-8653-0772e8acc696-image.png

                    S 1 條回覆 最後回覆 回覆 引用 0
                    • S 離線
                      sdetweil @kithaam
                      最後由 編輯

                      @kithaam yes, some missing steps.

                      do

                      cd MagicMirror
                      cd vendor
                      npm install
                      cd ..
                      cd fonts
                      npm install
                      cd ..
                      

                      restart mm

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      K G 3 條回覆 最後回覆 回覆 引用 0
                      • K 離線
                        kithaam @sdetweil
                        最後由 編輯

                        @sdetweil Thank you its working

                        1 條回覆 最後回覆 回覆 引用 0
                        • K 離線
                          kithaam @sdetweil
                          最後由 編輯

                          @sdetweil Hi where do i go and change the Time and date? im new to this

                          1 條回覆 最後回覆 回覆 引用 0
                          • G 離線
                            goEasy @sdetweil
                            最後由 編輯

                            @sdetweil hello, i have done as you mentioned, but i have this trouble. please Help

                            cd MagicMirror
                            cd vendor
                            npm install
                            
                            1 package is looking for funding
                              run `npm fund` for details
                            
                            found 0 vulnerabilities
                            
                            $ npm fund
                            magicmirror-vendors
                            `-- https://github.com/sponsors/jonschlinkert
                              `-- picomatch@2.2.2
                            
                            S 1 條回覆 最後回覆 回覆 引用 0
                            • S 離線
                              sdetweil @goEasy
                              最後由 編輯

                              @goeasy no trouble… warnings… ignore

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

                              G 1 條回覆 最後回覆 回覆 引用 0
                              • G 離線
                                goEasy @sdetweil
                                最後由 編輯

                                @sdetweil you are a legend… btw all i had to do was

                                exit 
                                

                                then start mm again :grinning_face_with_sweat:

                                1 條回覆 最後回覆 回覆 引用 0
                                • G 離線
                                  goEasy @Mykle1
                                  最後由 編輯

                                  @mykle1 Please Help, i am running into this ERROR…

                                  Cowplain@DESKTOP-4IAPDRU MINGW64 ~
                                  $ cd magicmirror
                                  
                                  Cowplain@DESKTOP-4IAPDRU MINGW64 ~/magicmirror (master)
                                  $ npm start
                                  
                                  > magicmirror@2.14.0 start
                                  > ./node_modules/.bin/electron js/electron.js
                                  
                                  '.' is not recognized as an internal or external command,
                                  operable program or batch file.
                                  
                                  
                                  S 1 條回覆 最後回覆 回覆 引用 0
                                  • S 離線
                                    sdetweil @goEasy
                                    最後由 編輯

                                    @goeasy do NOT install under MINGW64, just straight under windows

                                    Sam

                                    How to add modules

                                    learning how to use browser developers window for css changes

                                    G 1 條回覆 最後回覆 回覆 引用 0
                                    • G 離線
                                      goEasy @sdetweil
                                      最後由 編輯

                                      @sdetweil Hey, thank you for the reply…

                                      i am new to this MM and coding, at one point everything was working then i cant remember what happened.

                                      i think is something to do with the Electron settings…

                                      Opening with CMD

                                      C:\Users\Cowplain\MagicMirror>npm start
                                      
                                      > magicmirror@2.14.0 start
                                      > ./node_modules/.bin/electron js/electron.js
                                      
                                      '.' is not recognized as an internal or external command,
                                      operable program or batch file.
                                      
                                      C:\Users\Cowplain\MagicMirror>
                                      

                                      Opening with Git Bash

                                      Cowplain@DESKTOP-4IAPDRU MINGW64 ~/magicmirror (master)
                                      $ npm start
                                      '.' is not recognized as an internal or external command,
                                      operable program or batch file.
                                      
                                      
                                      

                                      Please help

                                      S 1 條回覆 最後回覆 回覆 引用 0
                                      • S 離線
                                        sdetweil @goEasy
                                        最後由 編輯

                                        @goeasy on windows, its support to say

                                        node_modules/.bin/electron js/electron.js

                                        take off the ./

                                        windows doesn’t use that

                                        Sam

                                        How to add modules

                                        learning how to use browser developers window for css changes

                                        G 1 條回覆 最後回覆 回覆 引用 0
                                        • G 離線
                                          goEasy @sdetweil
                                          最後由 goEasy 編輯

                                          @sdetweil how would i remove

                                          ./
                                          

                                          ? i looked in the MM folder and such thing doesn’t exist

                                          S 1 條回覆 最後回覆 回覆 引用 0
                                          • S 離線
                                            sdetweil @goEasy
                                            最後由 編輯

                                            @goeasy edit package.json and change the start line

                                            Sam

                                            How to add modules

                                            learning how to use browser developers window for css changes

                                            1 條回覆 最後回覆 回覆 引用 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 💗

                                            註冊 登入
                                            • 1
                                            • 2
                                            • 6
                                            • 7
                                            • 8
                                            • 9
                                            • 10
                                            • 16
                                            • 17
                                            • 8 / 17
                                            • 第一個貼文
                                              最後的貼文
                                            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