Read the statement by Michael Teeuw here.
can't run "npm run start"
-
@jefftse no, change the line in package.json
from"start": "DISPLAY=\"${DISPLAY:=:0}\" ./node_modules/.bin/electron js/electron.js",to
"start": "./node_modules/.bin/electron js/electron.js",the error is " cannot open display: :0.0" typically, DISPLAY:0 is the physical display
-
just did that and the error is below
magicmirror@2.11.0 start /home/jeff/MagicMirror
electron js/electron.jsNo protocol specified
(electron:32527): Gtk-WARNING **: 21:53:58.634: cannot open display: :0.0
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! magicmirror@2.11.0 start:electron js/electron.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the magicmirror@2.11.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in:
npm ERR! /home/jeff/.npm/_logs/2020-06-24T01_53_58_663Z-debug.log -
-
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
DISPLAY=:0.0 -
@jefftse do u have a real display
-
@sdetweil yes, in fact, i had it all working yesterday till I accident broken my sd card. I had to rebuild everything today.
-
@jefftse did u use my install script? can’t understand why u are having trouble
-
@sdetweil sure did. I had to create an user to run your script since it wouldn’t allow me to do in root
-
@jefftse not supposed to be root
are u trying to run as root?can’t do that
-
@sdetweil correct, and I created an user for the install. the install went fine. I just can’t run it!
-
@jefftse I don’t understand created a user.
raspian installs and starts with user pi -
@sdetweil you are running under the same user as during install time, right?
-
@sdetweil i think i got it working. I deleted everything and run your script again in “pi” user.
one question, I just enabled auto start and how do i disable it ? I need to config the config file
-
@sdetweil Thank you!
-
@jefftse pm2 stop
then when you reboot it won’t come up again -
@sdetweil u can use npm start to test
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login