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

Still going but I've hit a brickwall - Unable to install dependencies

Scheduled Pinned Locked Moved Troubleshooting
magicmirror
12 Posts 2 Posters 4.6k 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.
  • M Offline
    Mykle1 Project Sponsor Module Developer @IDCreate
    last edited by Oct 30, 2017, 9:40 PM

    @IDCreate

    Ok, mate, here we go.

    • Open a terminal
    • Type cd MagicMirror and press enter
      Now your terminal will show that you are in the MagicMirror directory.
    • Type npm start and press enter
      Now your mirror software will attempt to run

    Tell me what happens when you do that

    Create a working config
    How to add modules

    I 2 Replies Last reply Oct 30, 2017, 9:44 PM Reply Quote 0
    • I Offline
      IDCreate @Mykle1
      last edited by Oct 30, 2017, 9:44 PM

      @Mykle1 thanks very much I don’t want to be a pain with all these questions.

      So I tried what you’ve said and I get the code below:

      pi@raspberrypi:~/MagicMirror $ npm start
      
      > 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.59-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 $ 
      
      
      
      
      M 1 Reply Last reply Oct 30, 2017, 9:55 PM Reply Quote 0
      • I Offline
        IDCreate @Mykle1
        last edited by IDCreate Oct 30, 2017, 9:52 PM Oct 30, 2017, 9:50 PM

        @Mykle1 I did manage to run the install as you mentioned as well before, it seems that I was in the cd MagicMirror section as you mentioned.

        pi@raspberrypi:~/MagicMirror $ npm install
        
        > magicmirror@2.1.3 install /home/pi/MagicMirror
        > cd vendor && npm install
        
        magicmirror-vendors@ /home/pi/MagicMirror/vendor
        ├── font-awesome@4.7.0 
        ├── moment@2.19.1 
        ├── moment-timezone@0.5.13 
        └── weathericons@2.1.0 
        
        
        > magicmirror@2.1.3 postinstall /home/pi/MagicMirror
        > sh installers/postinstall/postinstall.sh && npm run install-fonts
        
        MagicMirror installation successful!
        
        > magicmirror@2.1.3 install-fonts /home/pi/MagicMirror
        > cd fonts && npm install
        
        magicmirror-fonts@ /home/pi/MagicMirror/fonts
        └── roboto-fontface@0.8.0 
        
        pi@raspberrypi:~/MagicMirror $ npm start
        
        > 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.59-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 start
        
        > 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.59-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 $ 
        
        
        
        1 Reply Last reply Reply Quote 0
        • M Offline
          Mykle1 Project Sponsor Module Developer @IDCreate
          last edited by Oct 30, 2017, 9:55 PM

          @IDCreate said in Still going but I’ve hit a brickwall - Unable to install dependencies:

          ‘Electron failed to install correctly, please delete node_modules/electron and try installing again’

          No worries. Ok, lets correct the error being reported here. It’s actually telling you what to do.

          From your desktop (not in the terminal) go to your MagicMirror folder and open it. Now open the node_modules folder. Find the electron folder (it just says electron). Delete the electron folder.

          Now

          • Open a terminal
          • Type cd MagicMirror and press enter
            Now your terminal will show that you are in the MagicMirror directory.
          • Type npm install and press enter
            This will install the electron folder again and hopefully complete this time. When that completes:
          • Type npm start and press enter
            Now your mirror software will attempt to run againg
            Tell me what happens when you do that

          Create a working config
          How to add modules

          I 1 Reply Last reply Oct 30, 2017, 10:12 PM Reply Quote 1
          • I Offline
            IDCreate @Mykle1
            last edited by IDCreate Oct 30, 2017, 10:14 PM Oct 30, 2017, 10:12 PM

            @Mykle1 so I think I’ve done this as you have said. I went onto my desktop where you see the Raspberry Pi screen like you would a computer. I went to the folder you mentioned and deleted it. I then went ahead and followed your instructions. I then went to type npm start my screen flashed up on my desktop MagicMirror2 then dispersed and is showing on my main screen but says Please create a config file. See README for more information.

            Then below says 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?

            I’m now unable to get to my pi via my desktop. For some strange reason after typing this I’ve just managed to get back onto my Pi via my desktop.

            M 2 Replies Last reply Oct 30, 2017, 10:15 PM Reply Quote 0
            • M Offline
              Mykle1 Project Sponsor Module Developer @IDCreate
              last edited by Oct 30, 2017, 10:15 PM

              @IDCreate

              @IDCreate said in Still going but I’ve hit a brickwall - Unable to install dependencies:

              I’m now unable to get to my pi via my desktop

              Yes you can. Press your `Alt" key and a menu will drop down at the top. Move your mouse all the way to the top until you can see it. Far left menu you can Exit the mirror and back to your desktop.

              I’ll have the directions for you to create your config in a moment.

              You’ll be up and running in minutes, OK?

              Create a working config
              How to add modules

              I 1 Reply Last reply Oct 30, 2017, 10:18 PM Reply Quote 1
              • M Offline
                Mykle1 Project Sponsor Module Developer @IDCreate
                last edited by Oct 30, 2017, 10:17 PM

                @IDCreate said in Still going but I’ve hit a brickwall - Unable to install dependencies:

                Please create a config file.

                Your mirror will be running by the time you finish following this very short tutorial that I wrote just for you. :-)

                https://forum.magicmirror.builders/topic/4528/how-to-create-a-working-config-for-absolute-beginners

                Create a working config
                How to add modules

                1 Reply Last reply Reply Quote 1
                • I Offline
                  IDCreate @Mykle1
                  last edited by Oct 30, 2017, 10:18 PM

                  @Mykle1 ok thanks so I have the mirror screen on my desktop and the menu bar after I pressed alt. What do I do know close it down?

                  M 1 Reply Last reply Oct 30, 2017, 10:21 PM Reply Quote 0
                  • M Offline
                    Mykle1 Project Sponsor Module Developer @IDCreate
                    last edited by Oct 30, 2017, 10:21 PM

                    @IDCreate

                    You didn’t read what I wrote?

                    Far left menu says File, click it and click Quit, or Exit (depending on version

                    Create a working config
                    How to add modules

                    1 Reply Last reply Reply Quote 1
                    • 1
                    • 2
                    • 1 / 2
                    1 / 2
                    • First post
                      8/12
                      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