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

npm start dev

Scheduled Pinned Locked Moved Troubleshooting
13 Posts 5 Posters 13.6k 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 Sep 16, 2016, 9:09 AM

    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 Sep 16, 2016, 9:12 AM

      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 Sep 16, 2016, 9:32 AM

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

        S 1 Reply Last reply Sep 16, 2016, 9:33 AM Reply Quote 0
        • S Offline
          shavesophere @ostfilinchen
          last edited by Sep 16, 2016, 9:33 AM

          @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 Sep 16, 2016, 9:43 AM

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

            1 Reply Last reply Reply Quote 0
            • B Offline
              Bangee Module Developer
              last edited by Sep 16, 2016, 10:09 AM

              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 Sep 21, 2016, 2:19 PM

                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.

                B K 2 Replies Last reply Sep 22, 2016, 1:32 AM Reply Quote 1
                • B Offline
                  bhepler Module Developer @shavesophere
                  last edited by Sep 22, 2016, 1:32 AM

                  @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
                  • K Offline
                    KirAsh4 Moderator @shavesophere
                    last edited by Sep 22, 2016, 1:35 AM

                    @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 Sep 22, 2016, 1:40 AM Reply Quote 0
                    • S Offline
                      shavesophere @KirAsh4
                      last edited by Sep 22, 2016, 1:40 AM

                      @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!

                      K 1 Reply Last reply Sep 22, 2016, 1:43 AM Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        7/13
                        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