MagicMirror: I get error when try to run the magic mirror at first time
after copy config.js file i get this error When am give this code npm run start i get the error like this bellow the maic mirror is not open
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! magicmirror@2.14.0 start: DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the magicmirror@2.14.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/pi/.npm/_logs/2021-02-12T10_46_13_145Z-debug.log
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 1
- Comments: 17
pgrep Xorg
open a terminal window, or ssh session
same place u would run npm start
what pi is this? pi 0 has no electron version anymore.
the system is running in graphical desktop mode correct?
is xwindows running, do this command pgrep Xorg should return a number
Can you provide the contents of the debug log: /home/pi/.npm/_logs/2021-02-12T10_46_13_145Z-debug.log
If you’re running this on windows remove
DISPLAY="${DISPLAY:=:0}"
from package.json start scripthmmm.Looks like the start script is broken.Try re-installing MagicMirror
Hi @CherryChethanm did you copy the sample config.js?