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.

    Manual Installation Trouble

    Scheduled Pinned Locked Moved Troubleshooting
    12 Posts 3 Posters 2.2k Views 3 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.
    • S Offline
      sdetweil @brendan_c23
      last edited by

      @brendan_c23 use my install script
      see https://github.com/sdetweil/MagicMirror_scripts

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      B 1 Reply Last reply Reply Quote 1
      • B Offline
        brendan_c23 @brendan_c23
        last edited by

        @brendan_c23 I am attempting to install the latest Node.js version using the code provided on the manual installation page of this website. I copy and pasted each line one by one as directed. When I got to the “npm run start” line, I am hit with these lines:

        pi@raspberrypi:~/MagicMirror $ npm run start

        magicmirror@2.14.0 start /home/pi/MagicMirror
        DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js

        /home/pi/MagicMirror/node_modules/electron/index.js:14
        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 getElectronPath (/home/pi/MagicMirror/node_modules/electron/index.js:14:11)
        at Object. (/home/pi/MagicMirror/node_modules/electron/index.js:18:18)
        at Module._compile (internal/modules/cjs/loader.js:778:30)
        at Object.Module._extensions…js (internal/modules/cjs/loader.js:789:10)
        at Module.load (internal/modules/cjs/loader.js:653:32)
        at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
        at Function.Module._load (internal/modules/cjs/loader.js:585:3)
        at Module.require (internal/modules/cjs/loader.js:692:17)
        at require (internal/modules/cjs/helpers.js:25:18)
        at Object. (/home/pi/MagicMirror/node_modules/electron/cli.js:3:16)
        npm ERR! code ELIFECYCLE
        npm ERR! errno 1
        npm ERR! magicmirror@2.14.0 start: DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
        npm ERR! Exit status 1
        npm ERR!
        npm ERR! Failed at the magicmirror@2.14.0 start script.
        npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

        npm ERR! A complete log of this run can be found in:
        npm ERR! /home/pi/.npm/_logs/2021-01-16T20_10_19_289Z-debug.log

        I am not sure where to go from here. Any guidance/help would be greatly appreciated. I am using a 2Gb raspberry Pi 4. I have a very limited background in coding, but I notice it is telling me to delete the node_modules/electron and try installing again, any guidance on how to go about doing that would be appreciated.

        Thanks you guys

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

          @brendan_c23 use my script. delete the mm folder and run my script

          u are running the desktop version of pi os yes? u must

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          B 1 Reply Last reply Reply Quote 1
          • B Offline
            brendan_c23 @sdetweil
            last edited by

            @sdetweil Do I need to clear all of the previous downloads/code or am I good to just copy + paste that line below everything?

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

              @brendan_c23 u need to delete the mm folder

              rm -rf ~/MagicMirror

              then use the one line for install

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 1
              • B Offline
                brendan_c23 @sdetweil
                last edited by

                @sdetweil Delete MM folder? How do I do that
                And I think so but not totally sure

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

                  @brendan_c23 I gave u the command

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  B 1 Reply Last reply Reply Quote 1
                  • B Offline
                    brendan_c23 @sdetweil
                    last edited by

                    @sdetweil Thank you. Can you link me to PM2 installation

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

                      @brendan_c23 it’s part of the install, u will be prompted. also see rest of the scripts

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • B Offline
                        brendan_c23
                        last edited by

                        Thank you I hit Y, but how can I reverse it? I want to start installing modules but the mirror screen keeps running

                        A 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