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.

    i think i'm close?

    Scheduled Pinned Locked Moved Solved Troubleshooting
    6 Posts 2 Posters 1.6k 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.
    • F Offline
      flipfloplife
      last edited by

      ok – followed instructions here: https://forum.magicmirror.builders/topic/236/complete-setup-tutorial/6 by kirash4

      new pi3. everything from format card through mirror install went seemingly well (no errors that i could see) – until i type npm start. then i get

      magicmirror@2.5.0 start: ‘sh run-start.sh’
      sh run-start.sh

      (electron:4392): Gtk-WARNING **: cannot open display: :0
      npm ERR! code ELIFECYCLE
      npm ERR! code errno 1
      npm ERR! magicmirror@2.5.0 start: ‘sh run-start.sh’
      npm ERR! Exit status 1
      npm ERR!
      npm ERR! Failed at the magicmirror@2.5.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! /home/pi/.npm/_logs/2018-10-22T18+03_34_626Z-debug.log

      so. i used the google. and i did the following:

      npm cache clean --force
      delete node_modules folder
      delete package-lock.json file
      npm install

      this did not change the error I’m getting. thoughts?

      S 1 Reply Last reply Reply Quote 0
      • S Away
        sdetweil @flipfloplife
        last edited by sdetweil

        @flipfloplife are you doing this over SSH? or if the PI is in console mode?

        MM requires graphics mode… (display:0)

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        F 1 Reply Last reply Reply Quote 2
        • F Offline
          flipfloplife @sdetweil
          last edited by

          @sdetweil right on the pi. ok – so do i just adjust the run-start.sh to reflect device 0? i just left it the way it installed.

          S 1 Reply Last reply Reply Quote 0
          • S Away
            sdetweil @flipfloplife
            last edited by

            @flipfloplife you could still be in text mode (console mode) vs the graphical desktop…

            xwindows is display:0, so you shouldn’t have to change anything…

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            F 1 Reply Last reply Reply Quote 2
            • F Offline
              flipfloplife @sdetweil
              last edited by

              @sdetweil HEY !! IT WORKS!!! THANKS @sdetweil !!! ha – first pi project – working ! (had no idea that being in console mode (now i know that word) was different than being in a console “window” (?) inside the graphical desktop — THAT clicked it) – neat :)

              S 1 Reply Last reply Reply Quote 0
              • S Away
                sdetweil @flipfloplife
                last edited by

                @flipfloplife great!.. thanks for the feedback

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 1
                • 1 / 1
                • 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