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

      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
                    • KirAsh4K Offline
                      KirAsh4 Moderator @shavesophere
                      last edited by

                      @shavesophere said in npm start dev:

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

                      Well yeah, that’s different. If npm is giving you errors, no matter how you attempt to start it, the errors won’t magically go away. That’s like saying, the car won’t start if I’m sitting on the left side, maybe if I sit on the right side it might, but in reality there’s no gas in it. Switching seats isn’t going to fill the gas tank. :)

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

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