Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Diskussion zum HowTo nodejs-Installation und upgrade

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Diskussion zum HowTo nodejs-Installation und upgrade

    This topic has been deleted. Only users with topic management privileges can see it.
    • Homoran
      Homoran Global Moderator Administrators @bahnuhr last edited by

      @bahnuhr sagte in Diskussion zum HowTo nodejs-Installation und upgrade:

      im stable auch ?

      hat nix mit stable zu tun.
      nodejs ist das "Betriebssystem"

      1 Reply Last reply Reply Quote 0
      • Thomas Braun
        Thomas Braun Most Active @rettroo last edited by

        @rettroo
        Ja, passt.

        iobroker stop
        sudo apt update
        sudo apt dist-upgrade
        sudo reboot
        
        R 1 Reply Last reply Reply Quote 0
        • R
          rettroo @Thomas Braun last edited by

          @thomas-braun said in Diskussion zum HowTo nodejs-Installation und upgrade:

          sudo reboot

          Funktioniert, DANKE!

          Thomas Braun 1 Reply Last reply Reply Quote 0
          • Thomas Braun
            Thomas Braun Most Active @rettroo last edited by

            @rettroo

            Gegencheck:

            which node npm &&  node -v && npm -v && sudo apt update && sudo apt update && apt policy nodejs
            
            
            R 1 Reply Last reply Reply Quote 0
            • R
              rettroo @Thomas Braun last edited by

              @thomas-braun

              aaach@debian:~$ which node npm &&  node -v && npm -v && sudo apt update && sudo apt update && apt policy nodejs
              /usr/bin/node
              /usr/bin/npm
              v14.18.1
              6.14.15
              OK:1 http://security.debian.org/debian-security buster/updates InRelease
              OK:2 http://deb.debian.org/debian buster InRelease
              OK:3 http://deb.debian.org/debian buster-updates InRelease
              OK:4 https://deb.nodesource.com/node_14.x buster InRelease
              Paketlisten werden gelesen... Fertig
              Abhängigkeitsbaum wird aufgebaut.
              Statusinformationen werden eingelesen.... Fertig
              Alle Pakete sind aktuell.
              OK:1 http://security.debian.org/debian-security buster/updates InRelease
              OK:2 http://deb.debian.org/debian buster InRelease
              OK:3 http://deb.debian.org/debian buster-updates InRelease
              OK:4 https://deb.nodesource.com/node_14.x buster InRelease
              Paketlisten werden gelesen... Fertig
              Abhängigkeitsbaum wird aufgebaut.
              Statusinformationen werden eingelesen.... Fertig
              Alle Pakete sind aktuell.
              nodejs:
                Installiert:           14.18.1-deb-1nodesource1
                Installationskandidat: 14.18.1-deb-1nodesource1
                Versionstabelle:
               *** 14.18.1-deb-1nodesource1 500
                      500 https://deb.nodesource.com/node_14.x buster/main amd64 Packages
                      100 /var/lib/dpkg/status
                   10.24.0~dfsg-1~deb10u1 500
                      500 http://deb.debian.org/debian buster/main amd64 Packages
                      500 http://security.debian.org/debian-security buster/updates/main amd64 Packages
              
              
              
              Thomas Braun 1 Reply Last reply Reply Quote 0
              • Thomas Braun
                Thomas Braun Most Active @rettroo last edited by

                @rettroo
                Passt.

                Z 1 Reply Last reply Reply Quote 0
                • Z
                  zanabria @Thomas Braun last edited by

                  @thomas-braun sagte in Diskussion zum HowTo nodejs-Installation und upgrade:

                  @rettroo
                  Passt.

                  Mein Nodejs Update bricht mit folgdender Fehlermedlung ab:
                  root@raspberrypi:/opt/iobroker# cd /opt/iobroker
                  root@raspberrypi:/opt/iobroker# iobroker stop
                  root@raspberrypi:/opt/iobroker# curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -

                  Installing the NodeSource Node.js 14.x repo...

                  Populating apt-get cache...

                  • apt-get update
                    OK:1 http://archive.raspberrypi.org/debian buster InRelease
                    OK:2 https://deb.nodesource.com/node_12.x buster InRelease
                    OK:3 https://repo.z-wave.me/z-way/raspbian buster InRelease
                    Holen:4 http://raspbian.raspberrypi.org/raspbian buster InRelease [15,0 kB]
                    Paketlisten werden gelesen... Fertig
                    E: Für das Depot »http://raspbian.raspberrypi.org/raspbian buster InRelease« wurde der »Suite«-Wert von »stable« in »oldsta ble« geändert.
                    N: Sie müssen dies explizit bestätigen, bevor Aktualisierungen von diesem Depot angewendet werden können. Lesen Sie die apt -secure(8)-Handbuchseite, wenn Sie weitere Informationen benötigen.
                    Error executing command, exiting.

                  Was läuft hier falsch?

                  bahnuhr Thomas Braun 2 Replies Last reply Reply Quote 0
                  • bahnuhr
                    bahnuhr Forum Testing Most Active @zanabria last edited by

                    @zanabria sagte in Diskussion zum HowTo nodejs-Installation und upgrade:

                    apt-get update

                    lass das get weg.

                    also:

                    apt update
                    
                    Z 1 Reply Last reply Reply Quote 0
                    • Thomas Braun
                      Thomas Braun Most Active @zanabria last edited by Thomas Braun

                      @zanabria sagte in Diskussion zum HowTo nodejs-Installation und upgrade:

                      Was läuft hier falsch?

                      Du meldest dich als root an. Das läuft falsch.
                      Und du aktualisierst dein System zu selten.

                      Z 1 Reply Last reply Reply Quote 0
                      • Z
                        zanabria @Thomas Braun last edited by

                        @thomas-braun
                        Wenn ich ohne su installieren will kommt die Meldung, der User hat keine Berechtigung zum updaten?

                        Thomas Braun 1 Reply Last reply Reply Quote 0
                        • Thomas Braun
                          Thomas Braun Most Active @zanabria last edited by

                          @zanabria

                          Dann ist der user nicht in der Gruppe sudo drin.

                          groups
                          

                          liefert?

                          Z 1 Reply Last reply Reply Quote 0
                          • Z
                            zanabria @bahnuhr last edited by

                            @bahnuhr
                            das "apt-get update" ist Teil der Updateroutine. Aufgerufen durch
                            "curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -"

                            Thomas Braun 1 Reply Last reply Reply Quote 0
                            • Thomas Braun
                              Thomas Braun Most Active @zanabria last edited by Thomas Braun

                              @zanabria

                              Zuerst die user gerade rücken.
                              root abmelden.

                              Dann mit dem richtigen sudo-user das System auf Stand bringen:

                              sudo apt update
                              sudo apt full-upgrade
                              sudo reboot
                              

                              Danach kannst du dich um nodeJS kümmern.

                              Z 1 Reply Last reply Reply Quote 0
                              • Z
                                zanabria @Thomas Braun last edited by

                                @thomas-braun

                                zanabria@raspberrypi:~ $ groups
                                es gibt
                                "users"
                                zurück

                                Thomas Braun 1 Reply Last reply Reply Quote 0
                                • Z
                                  zanabria @Thomas Braun last edited by

                                  @thomas-braun sagte in Diskussion zum HowTo nodejs-Installation und upgrade:

                                  sudo apt update

                                  zanabria@raspberrypi:~ $ sudo apt update
                                  [sudo] Passwort für zanabria:
                                  Leider darf der Benutzer zanabria »/usr/bin/apt update« als root auf raspberrypi nicht ausführen.

                                  Das kommt als Fehlermeldung

                                  Thomas Braun 1 Reply Last reply Reply Quote 0
                                  • Thomas Braun
                                    Thomas Braun Most Active @zanabria last edited by

                                    @zanabria
                                    Dann mit einem user, der es darf (z. B. der pi) (wenn es da gar keinen mehr geben sollte zur Not mit dem root)

                                    sudo usermod -aG sudo zanabria
                                    
                                    Z 1 Reply Last reply Reply Quote 0
                                    • Thomas Braun
                                      Thomas Braun Most Active @zanabria last edited by

                                      @zanabria sagte in Diskussion zum HowTo nodejs-Installation und upgrade:

                                      es gibt
                                      "users"
                                      zurück

                                      Das ist deutlich zu wenig. Wie und warum hast du den user angelegt?

                                      Z 1 Reply Last reply Reply Quote 0
                                      • Z
                                        zanabria @Thomas Braun last edited by

                                        @thomas-braun
                                        zanabria@raspberrypi:~ $ sudo usermod -aG sudo zanabria
                                        [sudo] Passwort für zanabria:
                                        Leider darf der Benutzer zanabria »/usr/sbin/usermod -aG sudo zanabria« als root auf raspberrypi nicht ausführen.

                                        Das kommt zurück!!!

                                        Thomas Braun 1 Reply Last reply Reply Quote 0
                                        • Thomas Braun
                                          Thomas Braun Most Active @zanabria last edited by

                                          @zanabria #

                                          Logisch.
                                          Deswegen ja auch:

                                          Dann mit einem user, der es darf (z. B. der pi) (wenn es da gar keinen mehr geben sollte zur Not mit dem root)

                                          1 Reply Last reply Reply Quote 0
                                          • Z
                                            zanabria @Thomas Braun last edited by

                                            @thomas-braun
                                            habe immer alles nach Weisung gemacht.
                                            Beim update von Node_10 auf 12 hat alles wunderbar gefunzt.

                                            Thomas Braun 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            821
                                            Online

                                            31.8k
                                            Users

                                            79.9k
                                            Topics

                                            1.3m
                                            Posts

                                            nodejs
                                            91
                                            844
                                            186595
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo