• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Mirror is blank even after preparing a config.js file

Scheduled Pinned Locked Moved Unsolved Troubleshooting
6 Posts 2 Posters 3.9k Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    taztrk
    last edited by May 16, 2016, 8:59 PM

    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

    P 1 Reply Last reply May 16, 2016, 9:15 PM Reply Quote 0
    • P Offline
      paviro Admin @taztrk
      last edited by May 16, 2016, 9:15 PM

      @taztrk make sure to check your web inspector (use the node serveronly function and a browser of your choice - there should be a thread about that somewhere) for errors.

      We're all stories in the end. Just make it a good one, eh?

      – The Doctor

      T 1 Reply Last reply May 17, 2016, 7:10 AM Reply Quote 0
      • T Offline
        taztrk
        last edited by paviro May 17, 2016, 7:26 AM May 16, 2016, 9:41 PM

        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.

        P 1 Reply Last reply May 17, 2016, 6:48 AM Reply Quote 0
        • P Offline
          paviro Admin @taztrk
          last edited by May 17, 2016, 6:48 AM

          @taztrk so you did not do npm install?

          We're all stories in the end. Just make it a good one, eh?

          – The Doctor

          1 Reply Last reply Reply Quote 0
          • T Offline
            taztrk @paviro
            last edited by May 17, 2016, 7:10 AM

            @paviro it turns out i didn’t. I did it now and got errors like this. Sorry for the screenshot before hand

            (0_1463469030027_Capture.JPG

            P 1 Reply Last reply May 17, 2016, 7:27 AM Reply Quote 0
            • P Offline
              paviro Admin @taztrk
              last edited by paviro May 17, 2016, 7:27 AM May 17, 2016, 7:27 AM

              @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.

              We're all stories in the end. Just make it a good one, eh?

              – The Doctor

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              1 / 1
              • First post
                1/6
                Last post
              Enjoying MagicMirror? Please consider a donation!
              MagicMirror created by Michael Teeuw.
              Forum managed by Sam, technical setup by Karsten.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy