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.

    Unable to install dependencies, NPM install not working

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    66 Posts 19 Posters 104.5k Views 16 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.
    • bheplerB Offline
      bhepler Module Developer
      last edited by

      All right. It looks like the next step is to copy the sample config.js file to it’s final location and then run this puppy.

      Are you doing this directly on the Pi or via SSH?

      C 1 Reply Last reply Reply Quote 0
      • K Offline
        kiefersmith
        last edited by

        Maybe use something like pastebin for verbose output? Just for thread readability.

        C 1 Reply Last reply Reply Quote 0
        • C Offline
          cpramhofer @bhepler
          last edited by cpramhofer

          @bhepler
          the problem is that i (and many others) get an electron error. (compare the posting of @FlorianRD )
          i tried both: direkt an ssh

          kind regards!

          1 Reply Last reply Reply Quote 0
          • C Offline
            cpramhofer @kiefersmith
            last edited by

            @kiefersmith sorry, i will try it the next time! Thank you for the hint!

            1 Reply Last reply Reply Quote 0
            • KirAsh4K Offline
              KirAsh4 Moderator
              last edited by

              Fail! I did not get time this weekend to try this. I got as far as downloading the new Raspbian image. I need to get another project done first, and it’s taking a lot of my time to complete. I will get to the testing, be patient.

              A Life? Cool! Where can I download one of those from?

              1 Reply Last reply Reply Quote 0
              • K Offline
                kiefersmith
                last edited by kiefersmith

                Okay, guys, I got it working. Not sure exactly how. However, I have the basic steps:

                • re-imaged Raspbian
                • sudo apt-update, sudo apt-get upgrade, sudo apt-get autoremove
                • reboot
                • install latest versions of nodejs and npm (make sure they are actually up to date with --version)
                • install electron from source (I believe I did this globally -g.)
                • build MagicMirror from source (not using auto-install script)
                • create your config.js file.
                • RUN ELECTRON FROM CONSOLE (just type electron)
                • cd MagicMirror
                • now run sudo npm install && npm start.

                This worked for me! Hopefully it will work for you guys too.

                Edit: This also works without electron running. I think the issue comes when electron does not install properly?

                1 Reply Last reply Reply Quote 0
                • C Offline
                  cpramhofer
                  last edited by

                  @KirAsh4 well time is very precious in times like these ;) don´t get stressed due to our bug reports!
                  thanks a lot that you are getting a look on it.

                  KirAsh4K 1 Reply Last reply Reply Quote 0
                  • KirAsh4K Offline
                    KirAsh4 Moderator @cpramhofer
                    last edited by

                    @cpramhofer, not particularly stressed, just a matter of time … and life moving on.

                    A Life? Cool! Where can I download one of those from?

                    M 1 Reply Last reply Reply Quote 0
                    • M Offline
                      MarkAlisch @KirAsh4
                      last edited by

                      Hello,

                      Gotcha!

                      I got it running: D
                      The difference to the 20 previous try was that I did not make the whole in the pure console, but in a terminal under the graphical surface.

                      This can also be seen in the instructions under the URL https://forum.magicmirror.builders/topic/236/complete-setup-tutorial/6

                      1 Reply Last reply Reply Quote 0
                      • C Offline
                        cpramhofer
                        last edited by

                        Hi All,

                        after my holiday i gave the thing another chance with a fresh install:

                        Raspbian Jessie with Pixel
                        2016-09-23
                        (is this the problem???)

                        npm WARN [email protected] requires a peer of grunt@~0.4.0 but none was installed.
                        npm ERR! Linux 4.4.21-v7+
                        npm ERR! argv “/usr/bin/nodejs” “/usr/bin/npm” “install”
                        npm ERR! node v6.9.1
                        npm ERR! npm v3.10.8
                        npm ERR! code ELIFECYCLE

                        npm ERR! [email protected] postinstall: node install.js
                        npm ERR! Exit status 1
                        npm ERR!
                        npm ERR! Failed at the [email protected] postinstall script ‘node install.js’.
                        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 electron-prebuilt package,
                        npm ERR! not with npm itself.
                        npm ERR! Tell the author that this fails on your system:
                        npm ERR! node install.js
                        npm ERR! You can get information on how to open an issue for this project with:
                        npm ERR! npm bugs electron-prebuilt
                        npm ERR! Or if that isn’t available, you can get their info via:
                        npm ERR! npm owner ls electron-prebuilt
                        npm ERR! There is likely additional logging output above.

                        npm ERR! Please include the following file with any support request:
                        npm ERR! /root/MagicMirror/npm-debug.log
                        Unable to install dependencies!

                        or is it the problem that the installer is still using eletron-prebuild instead of electron??

                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 5
                        • 6
                        • 7
                        • 6 / 7
                        • 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
                          OSZAR »