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

Can't get MM to start, says it can't find electron, then electron won't start

Scheduled Pinned Locked Moved Troubleshooting
49 Posts 5 Posters 29.2k Views 4 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.
  • J Offline
    jmartin1009 @sdetweil
    last edited by Feb 20, 2019, 1:59 AM

    @sdetweil the pi reboots and then I change to magicmirror folder and try to start magic mirror and it still says it can’t find electron for some reason :/

    1 Reply Last reply Reply Quote 0
    • J Offline
      jmartin1009 @sdetweil
      last edited by Feb 20, 2019, 2:01 AM

      @sdetweil it also says that “local package.json exists, but node_modules is missing, did you mean to install?”

      S 1 Reply Last reply Feb 20, 2019, 2:03 AM Reply Quote 0
      • S Offline
        sdetweil @jmartin1009
        last edited by Feb 20, 2019, 2:03 AM

        @jmartin1009 yes

        npm install
        

        and if you still have electron missing, then try to

        npm install electron@3.0.10
        

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        J 1 Reply Last reply Feb 20, 2019, 2:05 AM Reply Quote 0
        • J Offline
          jmartin1009 @sdetweil
          last edited by Feb 20, 2019, 2:05 AM

          @sdetweil do I do npm install in pi or magic mirror?

          S 1 Reply Last reply Feb 20, 2019, 2:08 AM Reply Quote 0
          • S Offline
            sdetweil @jmartin1009
            last edited by Feb 20, 2019, 2:08 AM

            @jmartin1009 magigcmirror… u are installing the dependencies for that app

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            J 1 Reply Last reply Feb 20, 2019, 2:17 AM Reply Quote 0
            • J Offline
              jmartin1009 @sdetweil
              last edited by Feb 20, 2019, 2:17 AM

              @sdetweil still says

              electron: not found
              

              Could this be because it says that node_modules is missing? I did both npm install and npm install electron@3.0.10 in MagicMirror.

              S 1 Reply Last reply Feb 20, 2019, 2:33 AM Reply Quote 0
              • S Offline
                sdetweil @jmartin1009
                last edited by Feb 20, 2019, 2:33 AM

                @jmartin1009 npm install from inside the magicmirror folder should have created node_modules (thats its (npm) job)

                erase MagicMirror folder,
                download again
                and then cd MagicMirror and then npm install

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                J 1 Reply Last reply Feb 20, 2019, 3:24 AM Reply Quote 0
                • J Offline
                  jmartin1009 @sdetweil
                  last edited by Feb 20, 2019, 3:24 AM

                  @sdetweil another error, it says

                  npm ERR! file /home/pi/MagicMirror/package.json
                  npm ERR! code EJSONPARSE
                  npm ERR! JSON.parse Failed to parse json
                  npm ERR! JSON.parse Unexpected end of JSON input while parsing near ' '
                  npm ERR! JSON.parse Failed to parse package. json data.
                  npm ERR! JSON.parse package.json must be actual JSON, not just JavaScript.
                  
                  S 1 Reply Last reply Feb 20, 2019, 3:25 AM Reply Quote 0
                  • S Offline
                    sdetweil @jmartin1009
                    last edited by Feb 20, 2019, 3:25 AM

                    @jmartin1009 did u download the MagicMirror folder over again?

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    J 1 Reply Last reply Feb 20, 2019, 3:26 AM Reply Quote 0
                    • J Offline
                      jmartin1009 @sdetweil
                      last edited by Feb 20, 2019, 3:26 AM

                      @sdetweil yes I deleted the contents of the old folder and changed the name and redownloaded MagicMirror

                      S 1 Reply Last reply Feb 20, 2019, 3:28 AM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 2 / 5
                      2 / 5
                      • First post
                        11/49
                        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