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.

    Complete Setup tutorial: npm command not found / unable to install dependencies

    Scheduled Pinned Locked Moved Troubleshooting
    15 Posts 4 Posters 18.1k 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.
    • KirAsh4K Offline
      KirAsh4 Moderator
      last edited by

      After translating, this is what I see:

      Reading package lists ... Done
      Dependency tree.
      Status information can be read ... Done
      NodeJS is already the newest version.
      NodeJS was defined as installed manually.
      0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
      Node.js installation Done!
      

      So somewhere, somehow, your node installation is marked as non-upgradable through apt-get. I just tried with a fresh rpi, grabbed the most recent version of Rasbian listed on the Raspberry website and everything ran just fine. I’m not sure what to tell you here …

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

      1 Reply Last reply Reply Quote 0
      • Mr.MeeseeksM Offline
        Mr.Meeseeks
        last edited by Mr.Meeseeks

        I had same problem so I ran this:

        curl -L https://npmjs.org/install.sh | sudo sh

        CAAAAN DOO!👍

        B 1 Reply Last reply Reply Quote 0
        • B Offline
          Blamer @Mr.Meeseeks
          last edited by

          @Mr.Meeseeks said in Complete Setup tutorial: npm command not found / unable to install dependencies:

          I had same problem so I ran this:

          curl -L https://npmjs.org/install.sh | sudo sh

          Thanks a lot. But when I run this I get the message that the certificate is not yet valid and if I´d like to turn off the curl´s verification of the certificate I have to use the -k option. Any hints about that?

          Mr.MeeseeksM 1 Reply Last reply Reply Quote 0
          • Mr.MeeseeksM Offline
            Mr.Meeseeks @Blamer
            last edited by Mr.Meeseeks

            @Blamer I guess then use http:// instead, odd I didn’t get that.

            CAAAAN DOO!👍

            1 Reply Last reply Reply Quote 0
            • Mr.MeeseeksM Offline
              Mr.Meeseeks
              last edited by Mr.Meeseeks

              Oh I know, check that your system date and time is correct.

              If there is internet connection available follow the steps to set the date:

              1. sudo raspi-config
              2. Internationalization options
              3. Change Time Zone
              4. Select geographical area
              5. Select city or region.
              6. Reboot your pi.

              Maybe:
              sudo date -s “19 SEP 2016 20:37:00”

              CAAAAN DOO!👍

              B 1 Reply Last reply Reply Quote 0
              • B Offline
                Blamer @Mr.Meeseeks
                last edited by

                @Mr.Meeseeks said in Complete Setup tutorial: npm command not found / unable to install dependencies:

                Oh I know, check that your system date and time is correct.

                If there is internet connection available follow the steps to set the date:

                1. sudo raspi-config
                2. Internationalization options
                3. Change Time Zone
                4. Select geographical area
                5. Select city or region.
                6. Reboot your pi.

                Maybe:
                sudo date -s “19 SEP 2016 20:37:00”

                Excellent! For some reason I wasn´t able to set the correct time and date via raspi-config. Using sudo date -s “19 SEP 2016 20:37:00” solved the problem. After that I was able to run curl -L https://npmjs.org/install.sh | sudo sh. The install script curl -sL https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh | bash went through just like a charm!
                Although I still do not understand the connection between the wrong set time and date and the installation I´m very happy to run MM now. Now I have to configure the modules.
                –> A WORLD OF THANKS TO YOU!!

                1 Reply Last reply Reply Quote 0
                • Mr.MeeseeksM Offline
                  Mr.Meeseeks
                  last edited by

                  Wicked!
                  Ya the date time solved the https certificate issue. I also don’t know why we had to install npm manually and no one else did. Oh well, I’m sure this thread will help others👍

                  CAAAAN DOO!👍

                  1 Reply Last reply Reply Quote 0
                  • cowboysdudeC Offline
                    cowboysdude Module Developer
                    last edited by paviro

                    Honestly what I would do is format the SD card put the rasp img on the SD card then open a terminal window and do the

                    sudo apt-get update
                    sudo apt-get upgrade

                    then go to installing the mirror via the install script.


                    Note from admin: Please use Markdown on code snippets for easier reading!

                    B 1 Reply Last reply Reply Quote 0
                    • B Offline
                      Blamer @cowboysdude
                      last edited by

                      @cowboysdude

                      I tried that several times and it didn´t work! My Raspberry is probably some sort of unique…

                      1 Reply Last reply Reply Quote 0
                      • cowboysdudeC Offline
                        cowboysdude Module Developer
                        last edited by

                        That’s interesting to say the least… did you try the manual install?

                        B 1 Reply Last reply Reply Quote 0
                        • B Offline
                          Blamer @cowboysdude
                          last edited by

                          @cowboysdude

                          Of course I did. I tried the automatic and manual install with a formated SD card several times.
                          That´s the setup I´m using:
                          Raspberry Pi: https://www.amazon.de/gp/product/B01CEFWQFA/ref=oh_aui_detailpage_o00_s00?ie=UTF8&psc=1

                          SD- Card: https://www.amazon.de/gp/product/B013UDL5V6/ref=oh_aui_detailpage_o00_s00?ie=UTF8&psc=

                          Keyboard: https://www.amazon.de/Logitech-Keyboard-QWERTZ-deutsches-Tastaturlayout/dp/B003PAMIA2/ref=sr_1_1?s=ce-de&ie=UTF8&qid=1474639200&sr=1-1 keywords=logitech+K120

                          Power Source: https://www.amazon.de/gp/product/B01DBYGV04/ref=oh_aui_detailpage_o00_s00?ie=UTF8&psc=1

                          OS: 2016-05-27 raspbian jessie

                          Right now MM runs fine with the above mentioned commands. The only problem that remains is that the system clock of the Raspberry still doesn´t synchronize with the Internet. After using “sudo date -s “20 SEP 2016 20:37:00”” the system clock remains on the 20th of September, 22:26h. Hope I can fix that this weekend. Any suggestions are highly appreciated. Thanks.

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

                            Is ntp running? Is your firewall blocking it?

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

                            B 1 Reply Last reply Reply Quote 0
                            • B Offline
                              Blamer @KirAsh4
                              last edited by

                              @KirAsh4
                              I finally got it running. It turned out that the sync.- problem is well known since May 2016.

                              –> https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=149221

                              1. stopped the ntpd with :

                              sudo systemctl stop ntp

                              1. rather than running ntpdate, ran ntpdate-debian:

                              sudo ntpdate-debian

                              1. started ntpd

                              sudo systemctl start ntp

                              1. check

                              sudo ntpq -p

                              Now I´m happy!!

                              1 Reply Last reply Reply Quote 1

                              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                              With your input, this post could be even better 💗

                              Register Login
                              • 1 / 1
                              • 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