Read the statement by Michael Teeuw here.
electron:837): Gtk-WARNING **: cannot open display: 0:
-
And I can run
startx
to show the desktop screen on the monitor. only npm start is not work. -
@yohu12 do it in two steps
export DISPLAY=:0 npm start
-
@sdetweil said in electron:837): Gtk-WARNING **: cannot open display: 0::
export DISPLAY=:0
It return same error
(electron:1493): Gtk-WARNING **: cannot open display: :0
-
@yohu12 this is the same as MagicMirror/installers/mm.sh
Are u doing this over vpn?
Also the operating system must have xwindows running…
-
I saw this error because the raspi was set to Autologin as “pi” and I had created another user which could not take control of the display.
-
I saw this just yesterday (followed by a few other warnings). Solution was to follow pretty much this ancient but still working how-to for jessie:
jessie-lite-installation-guide
(especially points describing “Install Xserver, LXDE-gui and lightdm” and missing packages)