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

Unable to install dependencies, NPM install not working

Scheduled Pinned Locked Moved Unsolved Troubleshooting
66 Posts 19 Posters 102.8k 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.
  • K Offline
    KirAsh4 Moderator @cpramhofer
    last edited by Nov 1, 2016, 7:15 PM

    @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 Nov 12, 2016, 8:06 AM Reply Quote 0
    • M Offline
      MarkAlisch @KirAsh4
      last edited by Nov 12, 2016, 8:06 AM

      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 Nov 20, 2016, 3:17 PM

        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 grunt-yamllint@0.2.0 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! electron-prebuilt@1.3.9 postinstall: node install.js
        npm ERR! Exit status 1
        npm ERR!
        npm ERR! Failed at the electron-prebuilt@1.3.9 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
        • T Offline
          tajno
          last edited by Nov 20, 2016, 5:56 PM

          Did you tried the followed:

          npm install npm@latest -g
          npm install -g grunt
          npm install -g electron

          1 Reply Last reply Reply Quote 1
          • C Offline
            cpramhofer
            last edited by Nov 21, 2016, 6:29 PM

            IT WORKS!!

            thanks @tajno for the hint!

            My Steps to working MM:

            • Fresh Card with latest Version of Raspian (PIXEL)
            • [running the installer Script]
            • MMM DID NOT WORK AT THIS STAGE
            • running
              sudo npm install npm@latest -g
              sudo npm install -g grunt
              sudo npm install -g electron
            • manual install of MMM (git clone / sudo npm install / npm start)

            kind regards
            Christoph

            1 Reply Last reply Reply Quote 0
            • S Offline
              Sharkbyte
              last edited by Jan 7, 2022, 10:53 PM

              here is what worked for me
              git reset --hard and then git pull && npm install

              Technically challenged all day everyday.
              So then I just go here Evolution MMA
              Of course though spending time with the son is always the best of the best!

              S 1 Reply Last reply Jan 7, 2022, 10:56 PM Reply Quote 0
              • S Away
                sdetweil @Sharkbyte
                last edited by Jan 7, 2022, 10:56 PM

                @sharkbyte yeh, if you use my upgrade script it handles all that. Reset hard is, in my opinion, a bad thing to do, unless you KNOW why you are doing it.

                see
                https://github.com/sdetweil/MagicMirror_scripts

                Sam

                How to add modules

                learning how to use browser developers window for css changes

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