Read the statement by Michael Teeuw here.
npm start dev
-
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.
-
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.
-
do you have create an mm.sh and starts this with pm2?
-
@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
-
and do u do these steps: https://github.com/MichMich/MagicMirror/wiki/Auto-Starting-MagicMirror
-
hey there
@ostfilinchen that’s it. to startnpm
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.jsHow can I debug this error?
-
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.
-
@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. :/
-
@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
-
@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!