Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.15.0 is available! For more information about this release, check out this topic.

    UNSOLVED Mirror is blank even after preparing a config.js file

    Troubleshooting
    2
    6
    3376
    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
      taztrk last edited by

      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

      paviro 1 Reply Last reply Reply Quote 0
      • paviro
        paviro Admin @taztrk last edited by

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

        T 1 Reply Last reply Reply Quote 0
        • T
          taztrk last edited by paviro

          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.

          paviro 1 Reply Last reply Reply Quote 0
          • paviro
            paviro Admin @taztrk last edited by

            @taztrk so you did not do npm install?

            1 Reply Last reply Reply Quote 0
            • T
              taztrk @paviro last edited by

              @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

              paviro 1 Reply Last reply Reply Quote 0
              • paviro
                paviro Admin @taztrk last edited by paviro

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

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                Enjoying MagicMirror? Please consider a donation!
                MagicMirror created by Michael Teeuw.
                Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                This forum is using NodeBB as its core | Contributors
                Contact | Privacy Policy