Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    Unable to install dependencies!

    Troubleshooting
    7
    8
    12793
    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
      Nik last edited by

      Hi guys,
      just tried installing the Magic Mirror (curl -sL https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh | bash). Getting the following message; can anyone help me?

      Run apt-get install nodejs (as root) to install Node.js v6.x and npm

      Reading package lists… Done
      Building dependency tree
      Reading state information… Done
      nodejs is already the newest version.
      0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
      Node.js installation Done!
      Cloning MagicMirror …
      Cloning into ‘MagicMirror’…
      remote: Counting objects: 4734, done.
      remote: Compressing objects: 100% (34/34), done.
      remote: Total 4734 (delta 15), reused 0 (delta 0), pack-reused 4698
      Receiving objects: 100% (4734/4734), 10.49 MiB | 1.62 MiB/s, done.
      Resolving deltas: 100% (2502/2502), done.
      Cloning MagicMirror Done!
      Installing dependencies …
      bash: line 109: npm: command not found
      Unable to install dependencies!

      1 Reply Last reply Reply Quote -1
      • G
        gshimself last edited by

        Hi. Dod you do: Enter the repository: cd ~/MagicMirror and then Install and run the app: “npm install && npm start” ?

        1 Reply Last reply Reply Quote 0
        • broberg
          broberg Project Sponsor last edited by

          Also, have you tried just running tha script again? I had to run it a couple of times to get it to install everything

          1 Reply Last reply Reply Quote 0
          • N
            Nik last edited by

            @gshimself -bash: npm: command not found
            @broberg Yes, will try it again now, but it didn´t work for me 😨

            indigomejor 1 Reply Last reply Reply Quote 0
            • indigomejor
              indigomejor @Nik last edited by

              @Nik Hi, I had almost same problem, I solved it by installing nodejs and electron first before MM
              used those links http://thisdavej.com/beginners-guide-to-installing-node-js-on-a-raspberry-pi/ - in 3/4 of page
              and for electron I think I used this https://github.com/electron/electron-quick-start dont remember… sorry 😕

              1 Reply Last reply Reply Quote 1
              • bhepler
                bhepler Project Sponsor last edited by

                Two questions: What version of the Raspberry Pi are you running and are you using the Raspian Lite version?

                1 Reply Last reply Reply Quote 0
                • R
                  roramirez Core Contributors last edited by

                  said in Unable to install dependencies!:

                  Run apt-get install nodejs (as root) to install Node.js v6.x and npm

                  What say the command

                  dpkg -L nodejs
                  I understand the nodejs is not necesary install manually, the script do it for you.

                  Try, uninstall the nodejs from the repository and run again the bash installer.

                  1 Reply Last reply Reply Quote 0
                  • V
                    Vladis466 last edited by

                    Update received same error running the bash script:
                    curl -sL https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh | bash

                    on Raspberry pi 3.0 -B. Installed Raspbian Jesse using NOOBS.

                    Ran the script again and the response told me NodeJs was installed, “Magic mirror is already installed”
                    I believe this is more an unintended response of the actual bug. NodeJS was already installed correctly?

                    Anyway,

                    navigated into the folder MagicMirror:
                    npm start -> electron not installed fail.
                    npm install -> npm start

                    Bingo, we are running. No need to download any packages seperately.

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post
                    Enjoying MagicMirror? Please consider a donation!
                    MagicMirror created by Michael Teeuw.
                    Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                    This forum is using NodeBB as its core | Contributors
                    Contact | Privacy Policy