question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I get error when try to run the magic mirror at first time

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:17 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
sdetweilcommented, Feb 13, 2021

pgrep Xorg

open a terminal window, or ssh session

same place u would run npm start

1reaction
sdetweilcommented, Feb 12, 2021

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

I get error in magic mirror when am installing the magic mirror ...
I get error in magic mirror when am installing the magic mirror the cmd: npm run start.
Read more >
How to Make a Magic Mirror with Raspberry Pi - SparkFun Learn
npm fails to start: Get errors when you type in npm start ? Likely you're not in the MagicMirror folder. Make sure you're...
Read more >
How to Install Magic Mirror on Your Raspberry Pi - Howchoo
Learn how to install the Magic Mirror interface on your Raspberry Pi, turning it into a wall-mountable dashboard!
Read more >
Receiving Error when trying to add module : r/MagicMirror
Maybe a syntax error in your config.js file. Can you show us the code you've added in the config.js file? Make sure things...
Read more >
Magic Mirror is looking for package.json in all the wrong places
I'm trying to run Magic Mirror on a Pi 4b. I followed the install instructions perfectly, but I keep getting this error:.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found