Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Hilfe bei Update des gesamten Systems

    NEWS

    • Neues Video "KI im Smart Home" - ioBroker plus n8n

    • Neues Video über Aliase, virtuelle Geräte und Kategorien

    • Wir empfehlen: Node.js 22.x

    Hilfe bei Update des gesamten Systems

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

      @stoni
      Ja, auf node12 oder 14. Nicht höher!
      Anleitung dazu in meiner Signatur.

      S 1 Reply Last reply Reply Quote 0
      • S
        Stoni @Thomas Braun last edited by Stoni

        @thomas-braun

        Mir wird folgendes ausgegeben:

        apt policy nodejs
        nodejs:
          Installiert:           10.24.1-1nodesource1
          Installationskandidat: 10.24.1-1nodesource1
          Versionstabelle:
         *** 10.24.1-1nodesource1 500
                500 https://deb.nodesource.com/node_10.x buster/main armhf Packages
                100 /var/lib/dpkg/status
             10.24.0~dfsg-1~deb10u1 500
                500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Package
        

        Kann es sein, dass ich keine höhere Version zur Verfügung habe?

        apt update und upgrade habe ich erfolgreich gemacht.

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

          @stoni

          Ja, da muss noch das Repo auf node12 oder 14 geändert werden. Steht aber alles in der Anleitung drin.

          S 1 Reply Last reply Reply Quote 0
          • G
            guergen @Stoni last edited by guergen

            @stoni Na dann mal an die Anleitung von @Thomas-Braun, Teil 1.1 abarbeiten!

            1 Reply Last reply Reply Quote 1
            • S
              Stoni @Thomas Braun last edited by

              @thomas-braun

              soweit bin ich jetzt:

               which nodejs node npm && nodejs -v && node -v && npm -v && apt policy nodejs
              /usr/local/bin/nodejs
              /usr/local/bin/node
              /usr/local/bin/npm
              v14.9.0
              v14.9.0
              6.14.8
              nodejs:
                Installiert:           10.24.1-1nodesource1
                Installationskandidat: 10.24.1-1nodesource1
                Versionstabelle:
               *** 10.24.1-1nodesource1 500
                      500 https://deb.nodesource.com/node_10.x buster/main armhf Packages
                      100 /var/lib/dpkg/status
                   10.24.0~dfsg-1~deb10u1 500
                      500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
              

              Hoffe das passt schonmal. Wie kann ich die 14.9.0 jetzt installieren?

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

                @stoni sagte in Hilfe bei Update des gesamten Systems:

                Wie kann ich die 14.9.0 jetzt installieren?

                Die hast du irgendwie schon installiert.
                Aber falsch und NICHT nach der Anleitung.
                Kommando zurück, Anleitung nochmal lesen, diesmal den Part 2 - Falsche Pfade.

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

                  @stoni sagte in Hilfe bei Update des gesamten Systems:

                  Wie kann ich die 14.9.0 jetzt installieren?

                  hast du anscheinend schon auf einem falschen Weg geschafft

                  @stoni sagte in Hilfe bei Update des gesamten Systems:

                  /usr/local/bin/nodejs /usr/local/bin/node /usr/local/bin/npm v14.9.0 v14.9.0 6.14.8

                  1 Reply Last reply Reply Quote 0
                  • S
                    Stoni @Thomas Braun last edited by

                    @thomas-braun

                    ??

                    sudo rm /usr/local/bin/nodejs
                    pi@raspberrypi:~ $ sudo apt install nodejs --reinstall
                    Paketlisten werden gelesen... Fertig
                    Abhängigkeitsbaum wird aufgebaut.
                    Statusinformationen werden eingelesen.... Fertig
                    Die folgenden Pakete wurden automatisch installiert und werden nicht mehr benötigt:
                      libjemalloc2 rpi-eeprom-images
                    Verwenden Sie »sudo apt autoremove«, um sie zu entfernen.
                    0 aktualisiert, 0 neu installiert, 1 erneut installiert, 0 zu entfernen und 0 nicht aktualisiert.
                    Es müssen 14,4 MB an Archiven heruntergeladen werden.
                    Nach dieser Operation werden 0 B Plattenplatz zusätzlich benutzt.
                    Holen:1 https://deb.nodesource.com/node_10.x buster/main armhf nodejs armhf 10.24.1-1nodesource1 [14,4 MB]
                    Es wurden 14,4 MB in 2 s geholt (6.591 kB/s).
                    (Lese Datenbank ... 56895 Dateien und Verzeichnisse sind derzeit installiert.)
                    Vorbereitung zum Entpacken von .../nodejs_10.24.1-1nodesource1_armhf.deb ...
                    Detected old npm client, removing...
                    Entpacken von nodejs (10.24.1-1nodesource1) über (10.24.1-1nodesource1) ...
                    nodejs (10.24.1-1nodesource1) wird eingerichtet ...
                    Trigger für man-db (2.8.5-2) werden verarbeitet ...
                    pi@raspberrypi:~ $ which nodejs node npm && nodejs -v && node -v && npm -v && apt policy nodejs
                    /usr/bin/nodejs
                    /usr/local/bin/node
                    /usr/local/bin/npm
                    -bash: /usr/local/bin/nodejs: Datei oder Verzeichnis nicht gefunden
                    
                    

                    Ich versteh es nicht... sorry... vielleicht kannst Du mir etwas auf die Sprünge helfen...

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

                      @stoni
                      In der /etc/apt/sources.list.d/nodesource.list
                      muss node_10 durch node_14 ersetzt werden.
                      Dann

                      sudo apt update
                      sudo rm /usr/local/bin/node*
                      suod rm /usr/local/bin/npm
                      sudo apt install --reinstall nodejs
                      

                      Dann sollte es passen.

                      Steht aber doch auch genauso in
                      Teil 1.1 Node-Upgrade/ Wechsel der nodejs-Version:
                      drin?

                      Die oben vorgenommenen Schritte führen dazu, dass es eine Datei nodesource.list gibt, die das nodesource-Repository beinhaltet. Um die Version zu wechseln fügt man einfach eine passende Zeile ein. Ich habe da derzeitig 2 Quellen drin. Mit dem Editor nano kann man das recht einfach anpassen:

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

                      Die Datei könnte dann etwa so aussehen:

                      # node 12
                       
                      deb https://deb.nodesource.com/node_12.x buster main
                      deb-src https://deb.nodesource.com/node_12.x buster main
                      
                      # node 14
                      deb https://deb.nodesource.com/node_14.x buster main
                      deb-src https://deb.nodesource.com/node_14.x buster main
                      
                      S 1 Reply Last reply Reply Quote 0
                      • S
                        Stoni @Thomas Braun last edited by

                        @thomas-braun

                        ok glaube das sollte geklappt haben:

                        apt policy nodejs
                        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 armhf Packages
                                100 /var/lib/dpkg/status
                             10.24.0~dfsg-1~deb10u1 500
                                500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
                        
                        

                        Was mache ich jetzt?? den js-controller?

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

                          @stoni sagte in Hilfe bei Update des gesamten Systems:

                          Was mache ich jetzt??

                          which nodejs node npm && nodejs -v && node -v && npm -v && apt policy nodejs

                          S 1 Reply Last reply Reply Quote 0
                          • S
                            Stoni @Homoran last edited by

                            @homoran

                            which nodejs node npm && nodejs -v && node -v && npm -v && apt policy nodejs
                            /usr/bin/nodejs
                            /usr/bin/node
                            /usr/bin/npm
                            -bash: /usr/local/bin/nodejs: Datei oder Verzeichnis nicht gefunden
                            
                            
                            Homoran 1 Reply Last reply Reply Quote 0
                            • Homoran
                              Homoran Global Moderator Administrators @Stoni last edited by

                              @stoni sagte in Hilfe bei Update des gesamten Systems:

                              -bash: /usr/local/bin/nodejs: Datei oder Verzeichnis nicht gefunden

                              wo kommt das denn jetzt her?

                              S 1 Reply Last reply Reply Quote 0
                              • S
                                Stoni @Homoran last edited by

                                @homoran Stimmt was nicht???

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

                                  @stoni sagte in Hilfe bei Update des gesamten Systems:

                                  @homoran Stimmt was nicht???

                                  ja!
                                  da steht schon wieder /local/ drin

                                  S 1 Reply Last reply Reply Quote 0
                                  • S
                                    Stoni @Homoran last edited by

                                    @homoran also wieder der falsche Pfad? Soll ich des Szenario von @Thomas-Braun nochmal wiederholen?

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

                                      @stoni sagte in Hilfe bei Update des gesamten Systems:

                                      also wieder der falsche Pfad?

                                      weiß ich nicht, ich weiß ja nicht mal wo das herkommt

                                      S 1 Reply Last reply Reply Quote 0
                                      • S
                                        Stoni @Homoran last edited by

                                        @homoran

                                        Wie mache ich jetzt weiter???

                                        Hab gerade versucht, mal einen Adapter upzudaten. Das endet zwar korrekt, aber im Adapter-Tab wird wenig später wieder die alte Version mit dem Hinweis auf Update angezeigt. Soll ich den js-controller updaten?

                                        Homoran Thomas Braun 2 Replies Last reply Reply Quote 0
                                        • Homoran
                                          Homoran Global Moderator Administrators @Stoni last edited by

                                          @stoni sagte in Hilfe bei Update des gesamten Systems:

                                          Wie mache ich jetzt weiter???

                                          warten bis @Thomas-Braun wieder Zeit hat und auf keinen Fall irgendetwas anderes machen

                                          @stoni sagte in Hilfe bei Update des gesamten Systems:

                                          gerade versucht, mal einen Adapter upzudaten

                                          ist keine gute Idee, bis alles wieder im Lot ist

                                          S 2 Replies Last reply Reply Quote 0
                                          • S
                                            Stoni @Homoran last edited by

                                            @homoran ok

                                            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

                                            910
                                            Online

                                            32.1k
                                            Users

                                            80.6k
                                            Topics

                                            1.3m
                                            Posts

                                            nodejs update upgrade
                                            5
                                            86
                                            6209
                                            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