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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • 15. 05. Wartungsarbeiten am ioBroker Forum

    • 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.
    • H
      holgerwolf @Thomas Braun last edited by

      @thomas-braun Ich bin halt wie immer bei dem Zero nach dem *** SONDERFALL *** vorgegangen.

      Wie bekomme ich denn eine neuere Version hier rein:

      apt policy nodejs
      nodejs:
        Installed: 12.22.12~dfsg-1~deb11u1
        Candidate: 12.22.12~dfsg-1~deb11u1
        Version table:
       *** 12.22.12~dfsg-1~deb11u1 500
              500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
              100 /var/lib/dpkg/status
      
      

      Komisch, die Probleme hatte ich früher nicht.

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

        @holgerwolf

        Ach Zero hatte ich überlesen. Das ist soweit ich weiß einer der Sonderfälle für ARMv6.

        H 1 Reply Last reply Reply Quote 0
        • H
          holgerwolf @Thomas Braun last edited by

          @thomas-braun Ja, wegen dem Zero hatte ich das immer auf dem Weg über "Sonderfall" gemacht.

          Also erst alte Version gelöscht und neue dann händisch drauf kopiert. Jetzt bleibt die 12.x aber immer in der policy sichtbar. Ggf funzt da nicht mehr der manuelle Weg 😞

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

            @holgerwolf Das die Version 12 in der Auslage liegt ist normal. Sie darf nur nicht installiert sein.

            cd ~
            sudo apt remove nodejs node-* npm
            
            H 1 Reply Last reply Reply Quote 0
            • H
              holgerwolf @Thomas Braun last edited by

              @thomas-braun So besser?

              type -P nodejs node npm && nodejs -v && node -v && npm -v && apt policy nodejs 
              /usr/local/bin/nodejs
              /usr/local/bin/node
              /usr/local/bin/npm
              v16.19.0
              v16.19.0
              8.19.3
              nodejs:
                Installed: (none)
                Candidate: 12.22.12~dfsg-1~deb11u1
                Version table:
                   12.22.12~dfsg-1~deb11u1 500
                      500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
              
              

              Keine Ahnung wie das 12.22 drauf kam.

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

                @holgerwolf

                Ja, so ist es besser.
                Darauf achten, dass jetzt das Paket nodejs nicht mehr über den Standard-Update-Mechanismus mitläuft sondern gesondert im Auge behalten werden muss.

                1 Reply Last reply Reply Quote 0
                • U
                  UncleB last edited by

                  @Thomas-Braun
                  Wollte heute wegen Jarvis NodeJS auf 14.21.1 hochschieben, hat nach deiner Anleitung laut Terminal auch geklappt:

                  armv7l
                  Kein Docker
                  /usr/bin/nodejs
                  /usr/local/bin/node
                  /usr/local/bin/npm
                  v14.21.1
                  v14.18.2
                  6.14.15
                  4.0.23
                  pi
                  pi adm dialout cdrom sudo audio video plugdev games users input netdev gpio i2c spi iobroker
                  tty
                  
                  /opt/iobroker
                  OK:1 http://archive.raspberrypi.org/debian buster InRelease
                  OK:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
                  OK:3 https://repos.influxdata.com/debian stretch InRelease
                  OK:4 https://deb.nodesource.com/node_14.x bullseye InRelease
                  OK:5 https://deb.nodesource.com/node_16.x bullseye InRelease
                  Paketlisten werden gelesen... Fertig
                  Abhängigkeitsbaum wird aufgebaut.
                  Statusinformationen werden eingelesen.... Fertig
                  Aktualisierung für 1 Paket verfügbar. Führen Sie »apt list --upgradable« aus, um es anzuzeigen.
                  nodejs:
                    Installiert:           14.21.1-deb-1nodesource1
                    Installationskandidat: 16.19.0-deb-1nodesource1
                    Versionstabelle:
                       16.19.0-deb-1nodesource1 500
                          500 https://deb.nodesource.com/node_16.x bullseye/main armhf Packages
                   *** 14.21.1-deb-1nodesource1 500
                          500 https://deb.nodesource.com/node_14.x bullseye/main armhf Packages
                          100 /var/lib/dpkg/status
                       10.24.0~dfsg-1~deb10u2 500
                          500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
                  
                  

                  Laut ioBroker bin ich aber immer noch auf 14.18.2
                  Liegt vermutlich daran weil die node & npm nicht in /usr/bin liegen sondern in /usr/local/bin?
                  Kann ich das beheben?

                  Thomas Braun Homoran 3 Replies Last reply Reply Quote 0
                  • Thomas Braun
                    Thomas Braun Most Active @UncleB last edited by Thomas Braun

                    @uncleb
                    Nein, das hat NICHT geklappt.
                    HowTo gelesen?

                    Pfade falsch, Repos falsch.

                    1 Reply Last reply Reply Quote 0
                    • Homoran
                      Homoran Global Moderator Administrators @UncleB last edited by

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

                      hat nach deiner Anleitung laut Terminal auch geklappt:

                      nein!

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

                      v14.21.1
                      v14.18.2

                      da sind zwei node Installationen

                      1 Reply Last reply Reply Quote 0
                      • U
                        UncleB last edited by

                        Also eine löschen? Und wie?

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

                          @uncleb

                          Du bist da offenbar auf dem obsoleten buster-Release unterwegs.
                          In den Paketquellen hast du aber stretch und bullseye eingetragen. Warum? Ist grund falsch, da muss ÜBERALL das passende release genannt sein.

                          https://repos.influxdata.com/debian stretch InRelease
                          https://deb.nodesource.com/node_14.x bullseye InRelease
                          https://deb.nodesource.com/node_16.x bullseye InRelease
                          

                          Stell die .list-Dateien alle richtig ein.
                          Und dann bringst du das ganze Spiel auf das aktuelle Stable-Release 'Bullseye'. Und auf node16 dann auch gleich.

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

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

                            Also eine löschen? Und wie?

                            Steht im HowTo - Teil 2 drin.

                            1 Reply Last reply Reply Quote 0
                            • U
                              UncleB last edited by

                              Alles klar, danke für die Infos, vermutlich bin ich aber schneller wenn ich das System neu installiere und ein Backup einspiele

                              Thomas Braun 2 Replies Last reply Reply Quote 0
                              • Thomas Braun
                                Thomas Braun Most Active @UncleB last edited by

                                @uncleb

                                Vermutlich nicht. Halt in zwei Dateien stretch/bullseye durch buster ersetzen und den flaschen Pfad löschen. Ist eine Sache von 2 Minuten.

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

                                  @uncleb

                                  Da stretch duch buster ersetzen:

                                  sudo nano /etc/apt/sources.list.d/influxdb.list
                                  

                                  Da bullseye durch buster ersetzen:

                                  sudo nano /etc/apt/sources.list.d/nodesource.list
                                  

                                  Falschen Kram löschen:

                                  sudo rm /usr/local/bin/n*
                                  

                                  Gerade ziehen:

                                  sudo apt update
                                  sudo apt full-upgrade
                                  

                                  Fertig.

                                  U 1 Reply Last reply Reply Quote 0
                                  • U
                                    UncleB @Thomas Braun last edited by

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

                                    sudo apt full-upgrade

                                    Danke für die Hilfe Thomas Braun
                                    Aber iwas hab ich wohl wieder zerschossen

                                    
                                    pi@raspberrypi:/etc/apt/sources.list.d $ uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && iob -v && whoami && groups && echo $XDG_SESSION_TYPE && pwd && sudo apt-get update &> /dev/null && sudo apt-get update && apt-cache policy nodejs
                                    armv7l
                                    /usr/bin/nodejs
                                    /usr/local/bin/node
                                    /usr/bin/npm
                                    v16.19.0
                                    -bash: /usr/local/bin/node: Datei oder Verzeichnis nicht gefunden
                                    
                                    
                                    Thomas Braun 1 Reply Last reply Reply Quote 0
                                    • Thomas Braun
                                      Thomas Braun Most Active @UncleB last edited by

                                      @uncleb

                                      Starte mal neu.

                                      U 1 Reply Last reply Reply Quote 0
                                      • U
                                        UncleB @Thomas Braun last edited by

                                        @thomas-braun jetzt hats geklappt, vielen dank 🙂

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

                                          @uncleb

                                          Was spuckt jetzt der Check aus?

                                          U 1 Reply Last reply Reply Quote 0
                                          • U
                                            UncleB @Thomas Braun last edited by

                                            @thomas-braun

                                            pi@raspberrypi:~ $ uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && iob -v && whoami && groups && echo $XDG_SESSION_TYPE && pwd && sudo apt-get update &> /dev/null && sudo apt-get update && apt-cache policy nodejs
                                            armv7l
                                            /usr/bin/nodejs
                                            /usr/bin/node
                                            /usr/bin/npm
                                            v16.19.0
                                            v16.19.0
                                            8.19.3
                                            4.0.23
                                            pi
                                            pi adm dialout cdrom sudo audio video plugdev games users input netdev gpio i2c spi iobroker
                                            tty
                                            /home/pi
                                            OK:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
                                            OK:2 http://archive.raspberrypi.org/debian buster InRelease
                                            OK:3 https://repos.influxdata.com/debian buster InRelease
                                            OK:4 https://deb.nodesource.com/node_14.x buster InRelease
                                            OK:5 https://deb.nodesource.com/node_16.x buster InRelease
                                            Paketlisten werden gelesen... Fertig
                                            nodejs:
                                              Installiert:           16.19.0-deb-1nodesource1
                                              Installationskandidat: 16.19.0-deb-1nodesource1
                                              Versionstabelle:
                                             *** 16.19.0-deb-1nodesource1 500
                                                    500 https://deb.nodesource.com/node_16.x buster/main armhf Packages
                                                    100 /var/lib/dpkg/status
                                                 14.21.1-deb-1nodesource1 500
                                                    500 https://deb.nodesource.com/node_14.x buster/main armhf Packages
                                                 10.24.0~dfsg-1~deb10u2 500
                                                    500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
                                            
                                            
                                            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

                                            938
                                            Online

                                            31.6k
                                            Users

                                            79.5k
                                            Topics

                                            1.3m
                                            Posts

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