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

    • [erledigt] 15. 05. Wartungsarbeiten am ioBroker Forum

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Diskussion zum HowTo nodejs-Installation und upgrade

    This topic has been deleted. Only users with topic management privileges can see it.
    • Thomas Braun
      Thomas Braun Most Active @bahnuhr last edited by

      @bahnuhr
      nodeJS hat nix mit dem ioBroker stable/beta-Repository zu tun.

      1 Reply Last reply Reply Quote 0
      • bahnuhr
        bahnuhr Forum Testing Most Active last edited by

        tatsächlich:
        2009ed88-03f1-42d1-abe9-a0f96b692852-image.png

        Im Info ist dies jetzt drin.

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

          @thomas-braun
          habe ich geändert und gespeichert, ändert aber nix:

          aaach@debian:/opt/iobroker$ sudo curl -fsSL https://deb.nodesource.com/setup_14.x | bash -
          
          ## Installing the NodeSource Node.js 14.x repo...
          
          
          ## Populating apt-get cache...
          
          + apt-get update
          Paketlisten werden gelesen... Fertig
          E: Sperrdatei /var/lib/apt/lists/lock konnte nicht geöffnet werden. - open (13: Keine Berechtigung)
          E: Das Verzeichnis /var/lib/apt/lists/ kann nicht gesperrt werden.
          W: Problem beim Entfernen (unlink) der Datei /var/cache/apt/pkgcache.bin - RemoveCaches (13: Keine Berechtigung)
          W: Problem beim Entfernen (unlink) der Datei /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Keine Berechtigung)
          Error executing command, exiting
          aaach@debian:/opt/iobroker$ sudo apt install nodejs
          Paketlisten werden gelesen... Fertig
          Abhängigkeitsbaum wird aufgebaut.
          Statusinformationen werden eingelesen.... Fertig
          nodejs ist schon die neueste Version (12.22.7-deb-1nodesource1).
          0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
          aaach@debian:/opt/iobroker$ sudo nano /etc/apt/sources.list.d/nodesource.list
          
          
          Thomas Braun 1 Reply Last reply Reply Quote 0
          • Thomas Braun
            Thomas Braun Most Active @rettroo last edited by

            @rettroo sagte in Diskussion zum HowTo nodejs-Installation und upgrade:
            Mach das nicht so. Das funktioniert in deinem Fall nicht.

            sudo curl -fsSL https://deb.nodesource.com/setup_14.x | bash -

            Was steht in der nodesource.list jetzt drin?

            cat /etc/apt/sources.list.d/nodesource.list
            
            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:

              cat /etc/apt/sources.list.d/nodesource.list

              deb-src https://deb.nodesource.com/node_14.x buster main
              
              
              Thomas Braun 1 Reply Last reply Reply Quote 0
              • Thomas Braun
                Thomas Braun Most Active @rettroo last edited by Thomas Braun

                @rettroo

                Eine Zeile zu wenig.
                So muss das aussehen:

                #node 14
                deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_14.x buster main
                deb-src [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_14.x buster main
                
                R 1 Reply Last reply Reply Quote 0
                • R
                  rettroo @Thomas Braun last edited by

                  @thomas-braun

                  hmm... so siehts im Nano aus:

                   GNU nano 3.2                                                                                      /etc/apt/sources.list.d/nodesource.list
                  
                  deb https://deb.nodesource.com/node_14.x buster main
                  deb-src https://deb.nodesource.com/node_14.x buster main
                  
                  
                  Thomas Braun 1 Reply Last reply Reply Quote 0
                  • 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
                                            • First post
                                              Last post

                                            Support us

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

                                            592
                                            Online

                                            31.6k
                                            Users

                                            79.5k
                                            Topics

                                            1.3m
                                            Posts

                                            nodejs
                                            91
                                            844
                                            168819
                                            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