• 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 584.0k 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.
  • S Away
    sdetweil @sdetweil
    last edited by Jun 8, 2021, 3:16 PM

    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 Reply Last reply Reply Quote 0
    • A Offline
      airart @sdetweil
      last edited by Jun 8, 2021, 3:22 PM

      @sdetweil can i install npm v6 ?

      S 1 Reply Last reply Jun 8, 2021, 3:24 PM Reply Quote 0
      • S Away
        sdetweil @airart
        last edited by Jun 8, 2021, 3:24 PM

        @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 Reply Last reply Jun 8, 2021, 3:26 PM Reply Quote 0
        • A Offline
          airart @sdetweil
          last edited by Jun 8, 2021, 3:26 PM

          @sdetweil in which folder it should be installed

          S 1 Reply Last reply Jun 8, 2021, 3:29 PM Reply Quote 0
          • S Away
            sdetweil @airart
            last edited by Jun 8, 2021, 3:29 PM

            @airart -g means global

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            A 1 Reply Last reply Jun 8, 2021, 3:44 PM Reply Quote 0
            • A Offline
              airart @sdetweil
              last edited by Jun 8, 2021, 3:44 PM

              @sdetweil it works ! I am so moved, evidently that was the problem.
              Does CMD remain active how do I leave the MM? fn + f11 reduces to window
              I also noticed some warnings

              S 1 Reply Last reply Jun 8, 2021, 3:57 PM Reply Quote 0
              • S Away
                sdetweil @airart
                last edited by Jun 8, 2021, 3:57 PM

                @airart ctrl-c in ther terminal window will stop the active program

                ignore warnings

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • M Offline
                  matefits71
                  last edited by Jul 25, 2021, 10:42 AM

                  Thanks for the tutorial, i’m running magicmirror on a surface pro 4,

                  The installation worked perfectly but when i tried to run npm start it throw an error “> DISPLAY=”${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js"

                  To bypass the error i edited the package.json by removing the DISPLAY="${DISPLAY:=:0} at the begining, tried npm start and it worked.

                  I’m not sure for what is that display option.

                  S 1 Reply Last reply Jul 25, 2021, 11:33 AM Reply Quote 0
                  • S Away
                    sdetweil @matefits71
                    last edited by Jul 25, 2021, 11:33 AM

                    @matefits71 on Linux, the xwindows graphical system writes to a numbered ‘display’ , and there can be multiple.

                    windows doesn’t have that. which is why I’ve written to remove that part, and also run the manual npm install in vendors and go ta folders

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 1
                    • A Offline
                      angeldchaveza
                      last edited by Sep 2, 2021, 2:11 AM

                      $ npm start

                      magicmirror@2.16.0 start C:\Users\Tecsis\MagicMirror
                      DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js

                      “DISPLAY” no se reconoce como un comando interno o externo,
                      programa o archivo por lotes ejecutable.
                      npm ERR! code ELIFECYCLE
                      npm ERR! errno 1
                      npm ERR! magicmirror@2.16.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.16.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\Tecsis\AppData\Roaming\npm-cache_logs\2021-09-02T01_57_52_304Z-debug.log

                      A 1 Reply Last reply Sep 2, 2021, 2:19 AM Reply Quote 0
                      • 1
                      • 2
                      • 18
                      • 19
                      • 20
                      • 21
                      • 22
                      • 32
                      • 33
                      • 20 / 33
                      • 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