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.

    trouble booting magicmirror

    Scheduled Pinned Locked Moved Solved Troubleshooting
    11 Posts 2 Posters 3.4k 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
      tbs86
      last edited by

      I type npm start and get a error.

      Run-start.sh: 4: run-start.sh: electron: not found

      Mykle1M 1 Reply Last reply Reply Quote 0
      • Mykle1M Offline
        Mykle1 Project Sponsor Module Developer @tbs86
        last edited by

        @tbs86

        Ok, I assume you ran npm start in the MagicMirror directory and received that error. This is a fairly common problem. The installation of dependencies fails at times to install electron properly.

        1. From your desktop(GUI) go to MagicMirror/node_modules folder. Inside this folder you will find the electron folder. Delete the electron folder.

        2. Now, open a terminal and type cd MagicMirror and enter. Now, in the MagicMirror directory type npm install and enter.

        This SHOULD install electron.

        Create a working config
        How to add modules

        T 1 Reply Last reply Reply Quote 1
        • T Offline
          tbs86 @Mykle1
          last edited by

          @mykle1 I do not have any folders in /home/pi/MagicMirror/node_modules

          Mykle1M 1 Reply Last reply Reply Quote 0
          • Mykle1M Offline
            Mykle1 Project Sponsor Module Developer @tbs86
            last edited by

            @tbs86 said in trouble booting magicmirror:

            I do not have any folders in /home/pi/MagicMirror/node_modules

            Not one? I think you never installed your dependencies at all. No matter, still run npm install in the MagicMirror directory to install ALL of your dependencies

            Create a working config
            How to add modules

            T 1 Reply Last reply Reply Quote 2
            • T Offline
              tbs86 @Mykle1
              last edited by

              @mykle1 thank you that worked! Now it’s telling me I need to create a config file

              1 Reply Last reply Reply Quote 0
              • T Offline
                tbs86
                last edited by

                I have edited the config file thank you for your help!!! Much appreciated!

                Mykle1M 1 Reply Last reply Reply Quote 0
                • Mykle1M Offline
                  Mykle1 Project Sponsor Module Developer @tbs86
                  last edited by

                  @tbs86

                  You can mark the topic as solved

                  Create a working config
                  How to add modules

                  1 Reply Last reply Reply Quote 0
                  • 1
                  • 2
                  • 2 / 2
                  • 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