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.

    Blank screen on start when installing modules

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    3 Posts 2 Posters 414 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.
    • N Offline
      natebrown
      last edited by

      Hi,
      I just installed MM on my Pi 400 and it was working fine until i tried installing 3rd party modules. When I start it up i get the following code:

      > magicmirror@2.17.1 start
      > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js "run"
      
      App threw an error during load
      Error: Cannot find module 'logger'
      Require stack:
      - /home/pi/MagicMirror/js/app.js
      - /home/pi/MagicMirror/js/electron.js
      - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
      - 
          at Module._resolveFilename (internal/modules/cjs/loader.js:887:15)
          at Function.n._resolveFilename (electron/js2c/browser_init.js:257:1128)
          at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
          at Module._load (internal/modules/cjs/loader.js:732:27)
          at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
          at Module.require (internal/modules/cjs/loader.js:959:19)
          at require (internal/modules/cjs/helpers.js:88:18)
          at Object.<anonymous> (/home/pi/MagicMirror/js/app.js:13:13)
          at Module._compile (internal/modules/cjs/loader.js:1078:30)
          at Object.Module._extensions..js (internal/modules/cjs/loader.js:1108:10)
      A JavaScript error occurred in the main process
      Uncaught Exception:
      Error: Cannot find module 'logger'
      Require stack:
      - /home/pi/MagicMirror/js/app.js
      - /home/pi/MagicMirror/js/electron.js
      - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
      - 
          at Module._resolveFilename (internal/modules/cjs/loader.js:887:15)
          at Function.n._resolveFilename (electron/js2c/browser_init.js:257:1128)
          at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
          at Module._load (internal/modules/cjs/loader.js:732:27)
          at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
          at Module.require (internal/modules/cjs/loader.js:959:19)
          at require (internal/modules/cjs/helpers.js:88:18)
          at Object.<anonymous> (/home/pi/MagicMirror/js/app.js:13:13)
          at Module._compile (internal/modules/cjs/loader.js:1078:30)
          at Object.Module._extensions..js (internal/modules/cjs/loader.js:1108:10)
      ^C/home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
      

      Thank you for your help.

      S 2 Replies Last reply Reply Quote 0
      • S Offline
        sdetweil @natebrown
        last edited by

        @natebrown I would do another
        npm install
        in the MagicMirror folder

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @natebrown
          last edited by

          @natebrown i don’t think it applies here at the moment (unless there was a mistake in the module installation and it overlayed some MM files) delete MagicMirror/node_modules and redo npm install in the MagicMirror folder

          but see this https://forum.magicmirror.builders/topic/15778/fix-for-black-screen-in-2-16-and-later

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          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 Sam, technical setup by Karsten.
          This forum is using NodeBB as its core | Contributors
          Contact | Privacy Policy