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

can't run "npm run start"

Scheduled Pinned Locked Moved Troubleshooting
25 Posts 3 Posters 5.4k Views 3 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.
  • J Offline
    jefftse @sdetweil
    last edited by Jun 24, 2020, 1:54 AM

    @sdetweil

    just did that and the error is below

    magicmirror@2.11.0 start /home/jeff/MagicMirror
    electron js/electron.js

    No protocol specified

    (electron:32527): Gtk-WARNING **: 21:53:58.634: cannot open display: :0.0
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! magicmirror@2.11.0 start: electron js/electron.js
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the magicmirror@2.11.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/jeff/.npm/_logs/2020-06-24T01_53_58_663Z-debug.log

    S 1 Reply Last reply Jun 24, 2020, 2:04 AM Reply Quote 0
    • S Away
      sdetweil @jefftse
      last edited by Jun 24, 2020, 2:04 AM

      @jefftse still trying to open display 0

      what is the vnc display number? do

      env | grep -i display
      

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      J 1 Reply Last reply Jun 24, 2020, 2:09 AM Reply Quote 0
      • J Offline
        jefftse @sdetweil
        last edited by Jun 24, 2020, 2:09 AM

        @sdetweil

        XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
        XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
        DISPLAY=:0.0

        S 1 Reply Last reply Jun 24, 2020, 2:10 AM Reply Quote 0
        • S Away
          sdetweil @jefftse
          last edited by Jun 24, 2020, 2:10 AM

          @jefftse do u have a real display

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          J 1 Reply Last reply Jun 24, 2020, 2:13 AM Reply Quote 0
          • J Offline
            jefftse @sdetweil
            last edited by Jun 24, 2020, 2:13 AM

            @sdetweil yes, in fact, i had it all working yesterday till I accident broken my sd card. I had to rebuild everything today.

            S 1 Reply Last reply Jun 24, 2020, 2:30 AM Reply Quote 0
            • S Away
              sdetweil @jefftse
              last edited by Jun 24, 2020, 2:30 AM

              @jefftse did u use my install script? can’t understand why u are having trouble

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              J 1 Reply Last reply Jun 24, 2020, 2:32 AM Reply Quote 0
              • J Offline
                jefftse @sdetweil
                last edited by Jun 24, 2020, 2:32 AM

                @sdetweil sure did. I had to create an user to run your script since it wouldn’t allow me to do in root

                S 1 Reply Last reply Jun 24, 2020, 2:45 AM Reply Quote 0
                • S Away
                  sdetweil @jefftse
                  last edited by sdetweil Jun 24, 2020, 2:46 AM Jun 24, 2020, 2:45 AM

                  @jefftse not supposed to be root
                  are u trying to run as root?

                  can’t do that

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  J 1 Reply Last reply Jun 24, 2020, 2:46 AM Reply Quote 0
                  • J Offline
                    jefftse @sdetweil
                    last edited by Jun 24, 2020, 2:46 AM

                    @sdetweil correct, and I created an user for the install. the install went fine. I just can’t run it!

                    S 1 Reply Last reply Jun 24, 2020, 2:47 AM Reply Quote 0
                    • S Away
                      sdetweil @jefftse
                      last edited by Jun 24, 2020, 2:47 AM

                      @jefftse I don’t understand created a user.
                      raspian installs and starts with user pi

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      S 1 Reply Last reply Jun 24, 2020, 2:48 AM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 2 / 3
                      2 / 3
                      • First post
                        13/25
                        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