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.

    npm start dev

    Scheduled Pinned Locked Moved Troubleshooting
    13 Posts 5 Posters 14.1k Views 4 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.
    • O Offline
      ostfilinchen
      last edited by

      Hey!

      in the readme i found this:

      Important: npm start does not work via SSH, use DISPLAY=:0 nohup npm start & instead. This starts the mirror on the remote display.

      1 Reply Last reply Reply Quote 0
      • S Offline
        shavesophere
        last edited by

        Thanks ost - but I have tried it both from direct physical keyboard and SSH using this command. I’ve been reading a few other problems related to this issue but all seems to come down to “not installing as root user”. Which i’m not - I’m installing as pi. So still scratching my head here.

        1 Reply Last reply Reply Quote 1
        • O Offline
          ostfilinchen
          last edited by

          do you have create an mm.sh and starts this with pm2?

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            shavesophere @ostfilinchen
            last edited by

            @ostfilinchen I was just using the standard install script that comes on the tutorial.

            curl -sL https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh | bash

            1 Reply Last reply Reply Quote 0
            • O Offline
              ostfilinchen
              last edited by

              and do u do these steps: https://github.com/MichMich/MagicMirror/wiki/Auto-Starting-MagicMirror

              1 Reply Last reply Reply Quote 0
              • BangeeB Offline
                Bangee Module Developer
                last edited by

                hey there
                @ostfilinchen that’s it. to start npm from my shell it need to use this command:
                DISPLAY=:0 npm start dev

                But with this I can not debug my script. Electron crashes alwasy on startup when I’ve activated my new module using const sensorLib = require('node-dht-sensor') in my node_helper.js

                How can I debug this error?

                1 Reply Last reply Reply Quote 0
                • S Offline
                  shavesophere
                  last edited by

                  OK i think i’ve solved it. magic mirror HAS to be started (npm start) from a terminal window in the x-window server. you cannot start it over ssh.

                  bheplerB KirAsh4K 2 Replies Last reply Reply Quote 1
                  • bheplerB Offline
                    bhepler Module Developer @shavesophere
                    last edited by

                    @shavesophere Thank you. This at least got me to the point where I can show the display on a monitor. Now I just have to walk to the other room to see my changes. :/

                    1 Reply Last reply Reply Quote 0
                    • KirAsh4K Offline
                      KirAsh4 Moderator @shavesophere
                      last edited by

                      @shavesophere said in npm start dev:

                      OK i think i’ve solved it. magic mirror HAS to be started (npm start) from a terminal window in the x-window server. you cannot start it over ssh.

                      Not true. It can be started over SSH just fine: DISPLAY=:0 npm start

                      A Life? Cool! Where can I download one of those from?

                      S 1 Reply Last reply Reply Quote 0
                      • S Offline
                        shavesophere @KirAsh4
                        last edited by

                        @KirAsh4 sorry - i stand corrected! but that being said when i first started getting npm ERRS i tried this and it still did not work… anyway, moving forward now!

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