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 772.7k 瀏覽 59 Watching
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • S 離線
      sdetweil @airart
      最後由 編輯

      @airart did u try to install electron?

      cd ~/MagicMirror
      npm install electron@11.3.0
      

      so we can see the error, if any

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      A 2 條回覆 最後回覆 回覆 引用 0
      • A 離線
        airart @sdetweil
        最後由 編輯

        @sdetweil yes

        C:\Users\gizmo\MagicMirror>npm install  electron@11.3.0  --loglevel=verbose
        npm verb cli [
        npm verb cli   'C:\\Program Files\\nodejs\\node.exe',
        npm verb cli   'C:\\Users\\gizmo\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
        npm verb cli   'install',
        npm verb cli   'electron@11.3.0',
        npm verb cli   '--loglevel=verbose'
        n................ecc
        
        1 條回覆 最後回覆 回覆 引用 0
        • A 離線
          airart @sdetweil
          最後由 編輯

          @sdetweil i try to restore original package.js and this show me a new log…

          0 verbose cli [
          0 verbose cli   'C:\\Program Files\\nodejs\\node.exe',
          0 verbose cli   'C:\\Users\\gizmo\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
          0 verbose cli   'start'
          0 verbose cli ]
          1 info using npm@7.14.0
          2 info using node@v14.17.0
          3 timing npm:load:whichnode Completed in 8ms
          4 timing config:load:defaults Completed in 10ms
          5 timing config:load:file:C:\Users\gizmo\AppData\Roaming\npm\node_modules\npm\npmrc Completed in 15ms
          6 timing config:load:builtin Completed in 15ms
          7 timing config:load:cli Completed in 8ms
          8 timing config:load:env Completed in 3ms
          9 timing config:load:file:C:\Users\gizmo\MagicMirror\.npmrc Completed in 1ms
          10 timing config:load:project Completed in 4ms
          11 timing config:load:file:C:\Users\gizmo\.npmrc Completed in 1ms
          12 timing config:load:user Completed in 1ms
          13 timing config:load:file:C:\Users\gizmo\AppData\Roaming\npm\etc\npmrc Completed in 1ms
          14 timing config:load:global Completed in 1ms
          15 timing config:load:validate Completed in 1ms
          16 timing config:load:credentials Completed in 5ms
          17 timing config:load:setEnvs Completed in 4ms
          18 timing config:load Completed in 53ms
          19 timing npm:load:configload Completed in 54ms
          20 timing npm:load:setTitle Completed in 1ms
          21 timing npm:load:setupLog Completed in 13ms
          22 timing npm:load:cleanupLog Completed in 14ms
          23 timing npm:load:configScope Completed in 0ms
          24 timing npm:load:projectScope Completed in 2ms
          25 timing npm:load Completed in 96ms
          26 timing config:load:flatten Completed in 15ms
          27 timing command:run-script Completed in 3ms
          28 timing command:start Completed in 57ms
          29 verbose stack Error: ENOENT: no such file or directory, open 'C:\Users\gizmo\MagicMirror\package.json'
          30 verbose cwd C:\Users\gizmo\MagicMirror
          31 verbose Windows_NT 10.0.18362
          32 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\gizmo\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "start"
          33 verbose node v14.17.0
          34 verbose npm  v7.14.0
          35 error code ENOENT
          36 error syscall open
          37 error path C:\Users\gizmo\MagicMirror/package.json
          38 error errno -4058
          39 error enoent ENOENT: no such file or directory, open 'C:\Users\gizmo\MagicMirror\package.json'
          40 error enoent This is related to npm not being able to find a file.
          41 verbose exit -4058
          
          
          S 1 條回覆 最後回覆 回覆 引用 0
          • A 離線
            airart
            最後由 編輯

            nothing to do, it doesn’t seem to find the electron file and folders

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

              @airart i don’t understand, I installed on windows 10 without trouble… but it was npm v6.

              I just installed and used npm 7.14…

              I had to use the full path to electron

              here is my package.json start line

              "start": "/Users/sdetw/MagicMirror/node_modules/.bin/electron js/electron.js",
              

              this is due to a change in npm… my prior instance will not start now without the full path

              Sam

              How to add modules

              learning how to use browser developers window for css changes

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

                this is because npm 7.14 is trying to launch from the MagicMirror folder instead of the module folder…

                Sam

                How to add modules

                learning how to use browser developers window for css changes

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

                  @sdetweil can i install npm v6 ?

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

                    @airart yes,

                    npm install -g npm@6.14.0

                    after this completes

                    cd MagicMirror
                    rd /s/q node_modules
                    npm install
                    

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

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

                      @sdetweil in which folder it should be installed

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

                        @airart -g means global

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        A 1 條回覆 最後回覆 回覆 引用 0
                        • 1
                        • 2
                        • 18
                        • 19
                        • 20
                        • 21
                        • 22
                        • 32
                        • 33
                        • 20 / 33
                        • 第一個貼文
                          最後的貼文
                        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