Read the statement by Michael Teeuw here.
Mirror is blank even after preparing a config.js file
-
Hi. I’m kind of new to ubuntu based operating systems and completely new to magic mirror and javascript. I prepared a config file based on the sample and the module information. When checked to see what the webpage looked like, there was the screen saying that i hadnt prepared a config file or that it had errors. So i did as advised and used jslint.com to debug the code until there were no more warnings. Now when I open the server page all i get is a blank screen. I think it might have something to do with the “there are no functions” phrase in the function report section of the jslint site but I have no clue. Could someone point me in the right direction please? Thanks
-
@taztrk make sure to check your web inspector (use the
node serveronlyfunction and a browser of your choice - there should be a thread about that somewhere) for errors. -
I tried to follow the HOw to Troubleshoot forum. I downloaded firebug and did node serveronly and this is the result:
pi@raspberrypi:/var/www/html/MagicMirror $ node serveronly module.js:440 throw err; ^ Error: Cannot find module 'express' at Function.Module._resolveFilename (module.js:438:15) at Function.Module._load (module.js:386:25) at Module.require (module.js:466:17) at require (internal/module.js:20:19) at Object.<anonymous> (/var/www/html/MagicMirror/js/server.js:8:15) at Module._compile (module.js:541:32) at Object.Module._extensions..js (module.js:550:10) at Module.load (module.js:456:32) at tryModuleLoad (module.js:415:12) at Function.Module._load (module.js:407:3) pi@raspberrypi:/var/www/html/MagicMirror $ node serveronly module.js:440 throw err; ^ Error: Cannot find module 'express' at Function.Module._resolveFilename (module.js:438:15) at Function.Module._load (module.js:386:25) at Module.require (module.js:466:17) at require (internal/module.js:20:19) at Object.<anonymous> (/var/www/html/MagicMirror/js/server.js:8:15) at Module._compile (module.js:541:32) at Object.Module._extensions..js (module.js:550:10) at Module.load (module.js:456:32) at tryModuleLoad (module.js:415:12) at Function.Module._load (module.js:407:3) pi@raspberrypi:/var/www/html/MagicMirror $I opened MM on firefox and used firebug but i didn´t see anything that looked like an error.
-
@taztrk so you did not do
npm install? -
@paviro it turns out i didn’t. I did it now and got errors like this. Sorry for the screenshot before hand
(

-
@taztrk please use Markdown on code snippets so it is easier to read :)
Looks like your OS or node version is not supported by Electron. Try using Raspbian especially if you do not have much experience.
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