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.

    Setting up Magic Mirror remotely?

    Scheduled Pinned Locked Moved Solved General Discussion
    16 Posts 5 Posters 5.9k Views 5 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
      navyvette87
      last edited by

      Went back to the website and read, and found something about npm install, so ran that, it looked like it installed something, then ran npm start again and got:

      magicmirror@2.1.3 start /home/pi/MagicMirror
      sh run-start.sh
      /home/pi/MagicMirror/node_modules/electron/index.js:9
      throw new Error(‘Electron failed to install correctly, please delete node_modules/electron and try installing again’)
      ^
      Error: Electron failed to install correctly, please delete node_modules/electron and try installing again
      at Object. (/home/pi/MagicMirror/node_modules/electron/index.js:9:9)
      at Module._compile (module.js:570:32)
      at Object.Module._extensions…js (module.js:579:10)
      at Module.load (module.js:487:32)
      at tryModuleLoad (module.js:446:12)
      at Function.Module._load (module.js:438:3)
      at Module.require (module.js:497:17)
      at require (internal/module.js:20:19)
      at Object. (/home/pi/MagicMirror/node_modules/electron/cli.js:3:16)
      at Module._compile (module.js:570:32)
      npm ERR! Linux 4.9.35-v7+
      npm ERR! argv “/usr/bin/node” “/usr/bin/npm” “start”
      npm ERR! node v6.11.5
      npm ERR! npm v3.10.10
      npm ERR! code ELIFECYCLE
      npm ERR! magicmirror@2.1.3 start: sh run-start.sh
      npm ERR! Exit status 1
      npm ERR!
      npm ERR! Failed at the magicmirror@2.1.3 start script ‘sh run-start.sh’.
      npm ERR! Make sure you have the latest version of node.js and npm installed.
      npm ERR! If you do, this is most likely a problem with the magicmirror package,
      npm ERR! not with npm itself.
      npm ERR! Tell the author that this fails on your system:
      npm ERR! sh run-start.sh
      npm ERR! You can get information on how to open an issue for this project with:
      npm ERR! npm bugs magicmirror
      npm ERR! Or if that isn’t available, you can get their info via:
      npm ERR! npm owner ls magicmirror
      npm ERR! There is likely additional logging output above.
      npm ERR! Please include the following file with any support request:
      npm ERR! /home/pi/MagicMirror/npm-debug.log
      pi@raspberrypi:~/MagicMirror $

      npm-debug.log
      0 info it worked if it ends with ok
      1 verbose cli [ ‘/usr/bin/node’, ‘/usr/bin/npm’, ‘start’, ‘dev’ ]
      2 info using npm@3.10.10
      3 info using node@v6.11.5
      4 verbose run-script [ ‘prestart’, ‘start’, ‘poststart’ ]
      5 info lifecycle magicmirror@2.1.3~prestart: magicmirror@2.1.3
      6 silly lifecycle magicmirror@2.1.3~prestart: no script for prestart, continuing
      7 info lifecycle magicmirror@2.1.3~start: magicmirror@2.1.3
      8 verbose lifecycle magicmirror@2.1.3~start: unsafe-perm in lifecycle true
      9 verbose lifecycle magicmirror@2.1.3~start: PATH: /usr/lib/node_modules/npm/bi$
      10 verbose lifecycle magicmirror@2.1.3~start: CWD: /home/pi/MagicMirror
      11 silly lifecycle magicmirror@2.1.3~start: Args: [ ‘-c’, 'sh run-start.sh "dev$
      12 silly lifecycle magicmirror@2.1.3~start: Returned: code: 1 signal: null
      13 info lifecycle magicmirror@2.1.3~start: Failed to exec start script
      14 verbose stack Error: magicmirror@2.1.3 start: sh run-start.sh "dev"
      14 verbose stack Exit status 1
      14 verbose stack at EventEmitter. (/usr/lib/node_modules/npm/lib$
      14 verbose stack at emitTwo (events.js:106:13)
      14 verbose stack at EventEmitter.emit (events.js:191:7)
      [ Read 45 lines ]

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

        @navyvette87 said in Setting up Magic Mirror remotely?:

        throw new Error(‘Electron failed to install correctly, please delete node_modules/electron and try installing again’)

        Terminal is telling what happened and you what to do here.

        Go into your MagicMirror folder, then into the node_modules folder, then DELETE the electron folder.

        Then run npm install again in the MagicMirror directory

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 0
        • N Offline
          navyvette87
          last edited by

          ok read some on the repository, was able to run the serveronly and got this
          Magic Mirror2
          Please create a config file.
          See README for more information.
          If you get this message while your config file is already
          created, your config file probably contains an error.
          Use a JavaScript linter to validate your file.

          what next?

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

            @navyvette87

            Look at the bottom left of my post. Click on Create a working config

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 0
            • N Offline
              navyvette87
              last edited by

              I got it to work, but then I went through the pi setup stuff to turn on the screensaver and wifi sleep, now when i tried to reboot, it says

              [FAILED] Failed to start Light Display Manager
              SSH is enabled and the default password for the ‘pi’ user has not been changed. This is a security risk - please login as the ‘pi’ user and type passwd to set a new password.
              pi@raspberrypi: $

              How do i get it to continue to the desktop screen?

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

                @navyvette87

                I’ve never encountered that before. Maybe, revert the changes you just made, get your mirror running, then try them again, 1 at a time

                Create a working config
                How to add modules

                1 Reply Last reply Reply Quote 0
                • N Offline
                  navyvette87
                  last edited by

                  fixed the light display thing by rebooting with hdmi unplugged, then repluging it in, then rebooting, but the ssh message still there

                  ? 1 Reply Last reply Reply Quote 0
                  • ? Offline
                    A Former User @navyvette87
                    last edited by

                    @navyvette87
                    SSH is enabled and the default password for the ‘pi’ user has not been changed. This is a security risk - please login as the ‘pi’ user and type passwd to set a new password.
                    It means as written. Change your password with command passwd.
                    just try passwd in your terminal.

                    N 1 Reply Last reply Reply Quote 0
                    • N Offline
                      navyvette87 @Guest
                      last edited by

                      @Sean It ended up being one of the changes I made to set up the pi for the screensaver edit. I did try passwd though. thanks eveyone. I got it up and running. I have another post for a module problem, once I get that figured out, I will start on the hardware.

                      1 Reply Last reply Reply Quote 0
                      • MikgaboM Offline
                        Mikgabo
                        last edited by

                        Hey guys,

                        Noob question…

                        So, I’m running MM2 on my Pi Zero W and can’t figure out home to get to my config.js through terminal. Can someone help me out???

                        Cheers,
                        Mike

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