Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. [How-to] Node.js für ioBroker richtig updaten

    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

    [How-to] Node.js für ioBroker richtig updaten

    This topic has been deleted. Only users with topic management privileges can see it.
    • Dalmatino
      Dalmatino last edited by Dalmatino

      Hallo zusammen,

      Sorry, dass ich keinen Log bzw. zu wenig Daten publiziert habe 👎
      Ja Anfänger trifft es gut, oder besser gesagt ein heimlicher Mitleser 🤗 . Nachdem ich mal fast alle Beiträge aus diesem Thread gelesen habe, konnte ich es selber mit "wagemutigen" Zügen lösen ✌

      Mein Vorgehen war wie folgt:

      which node -v
      which nodejs -v
      

      Die Pfade, welche es mir ergeben hat habe ich dann mit einem Remove Befehl gelöscht

      Anschliessend bin ich in den root Modus (Soll aber nicht empfehlenswert sein?) und habe noch mal alles neu installiert.. Das Ergebnis war erfolgreich:
      systeminfo2.png

      Bis jetzt läuft eigentlich alles einwandfrei.

      @Jan1
      Jeder macht doch mal erste Schritte haha.. seid doch nicht so hart zu mir

      @skokarl
      Danke für dein Verständnis 👍

      @Thomas-Braun
      Anbei der Code, ich hoffe trotz meines Vorgehens, dass noch alles i.O. ist?

      pi@SmartPuntamika:~ $ nodejs -v && node -v && npm -v
      v12.16.3
      v12.16.3
      6.14.5
      pi@SmartPuntamika:~ $ which nodejs && which node && which npm
      /usr/bin/nodejs
      /usr/bin/node
      /usr/bin/npm
      pi@SmartPuntamika:~ $ apt policy nodejs
      nodejs:
        Installiert:           12.16.3-1nodesource1
        Installationskandidat: 12.16.3-1nodesource1
        Versionstabelle:
       *** 12.16.3-1nodesource1 500
              500 https://deb.nodesource.com/node_12.x stretch/main armhf Packages
              100 /var/lib/dpkg/status
           8.11.1~dfsg-2~bpo9+1 500
              500 http://archive.raspberrypi.org/debian stretch/main armhf Packages
           4.8.2~dfsg-1 500
              500 http://raspbian.raspberrypi.org/raspbian stretch/main armhf Packages
      
      

      P.S. Tolles Forum, sehr rasche Reaktionszeiten und das Produkt ist super!👍

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

        @Dalmatino Ja, schaut gut aus.

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

          @Thomas-Braun
          Bin leider erst jetzt dazu gekommen. Leider ist danach der Stand immer noch auf 10.19.0

          Ich verstehe nicht warum das bei mir nicht funktioniert?

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

            @Stefan_1969
            Du musst mich noch mal abholen...

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

            [Edit:] Typo.

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

              @Thomas-Braun

              d3b9108e-36c4-46d4-8f66-df76228edc3b-image.png

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

                @Stefan_1969 Bitte keine Screenshots, Textausgaben
                hier mit </> Code Tags rein.

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

                  @Stefan_1969

                  curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
                  sudo apt update 
                  sudo apt dist-upgrade
                  sudo apt remove nodejs node npm
                  sudo apt install nodejs
                  
                  
                  S 1 Reply Last reply Reply Quote 0
                  • S
                    Stefan_1969 @Thomas Braun last edited by

                    @Thomas-Braun

                    stefan@iobrokerVM01:~$ lsb_release -a
                    No LSB modules are available.
                    Distributor ID: Debian
                    Description:    Debian GNU/Linux 10 (buster)
                    Release:        10
                    Codename:       buster
                    stefan@iobrokerVM01:~$ apt policy nodejs
                    nodejs:
                      Installiert:           10.19.0~dfsg1-1
                      Installationskandidat: 10.19.0~dfsg1-1
                      Versionstabelle:
                     *** 10.19.0~dfsg1-1 500
                            500 http://ftp.debian.org/debian buster/main i386 Packages
                            500 http://ftp.de.debian.org/debian buster/main i386 Packages
                            500 http://security.debian.org/debian-security buster/updates/main i386 Packages
                            100 /var/lib/dpkg/status
                    stefan@iobrokerVM01:~$ nodejs -v && node -v && npm -v
                    v10.19.0
                    v10.19.0
                    5.8.0
                    stefan@iobrokerVM01:~$ which nodejs  && which node && which npm
                    /usr/bin/nodejs
                    /usr/bin/node
                    /usr/bin/npm
                    stefan@iobrokerVM01:~$
                    
                    
                    1 Reply Last reply Reply Quote 0
                    • S
                      Stefan_1969 @Thomas Braun last edited by

                      @Thomas-Braun sagte in [How-to] Node.js für ioBroker richtig updaten:

                      sudo apt remove nodejs node npm

                      stefan@iobrokerVM01:~$ sudo apt remove nodejs node npm
                      Paketlisten werden gelesen... Fertig
                      Abh▒ngigkeitsbaum wird aufgebaut.
                      Statusinformationen werden eingelesen.... Fertig
                      E: Paket node kann nicht gefunden werden.
                      
                      
                      Thomas Braun 1 Reply Last reply Reply Quote 0
                      • Thomas Braun
                        Thomas Braun Most Active @Stefan_1969 last edited by

                        @Stefan_1969
                        Okay, versuch den mal

                        sudo apt update
                        apt policy nodejs
                        

                        dann.

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

                          @Thomas-Braun sagte in [How-to] Node.js für ioBroker richtig updaten:

                          sudo apt update apt policy nodejs

                          stefan@iobrokerVM01:~$ sudo apt update
                          OK:1 http://ftp.de.debian.org/debian buster InRelease
                          OK:2 http://security.debian.org/debian-security buster/updates InRelease
                          OK:3 http://ftp.de.debian.org/debian buster-updates InRelease
                          OK:4 https://deb.nodesource.com/node_12.x buster InRelease
                          OK:5 http://ftp.debian.org/debian buster InRelease
                          Paketlisten werden gelesen... Fertig
                          Abh▒ngigkeitsbaum wird aufgebaut.
                          Statusinformationen werden eingelesen.... Fertig
                          Alle Pakete sind aktuell.
                          stefan@iobrokerVM01:~$ apt policy nodejs
                          nodejs:
                            Installiert:           10.19.0~dfsg1-1
                            Installationskandidat: 10.19.0~dfsg1-1
                            Versionstabelle:
                           *** 10.19.0~dfsg1-1 500
                                  500 http://ftp.debian.org/debian buster/main i386 Packages
                                  500 http://ftp.de.debian.org/debian buster/main i386 Packages
                                  500 http://security.debian.org/debian-security buster/updates/main i386 Packages
                                  100 /var/lib/dpkg/status
                          stefan@iobrokerVM01:~$
                          
                          
                          Thomas Braun 1 Reply Last reply Reply Quote 0
                          • Thomas Braun
                            Thomas Braun Most Active @Stefan_1969 last edited by Thomas Braun

                            @Stefan_1969

                            cat /etc/apt/sources.list.d/nodesource.list
                            uname -a
                            

                            Das System läuft in einer VM, oder? Kann es sein, dass du der nur 32bit / i386 als Virtualisierte Prozessorarchitektur mitgegeben hast? Ich vermute nämlich ganz stark dass nodesource dafür keine Pakete mehr baut, weil die eigentlich auch keiner mehr wirklich verwendet.

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

                              @Thomas-Braun sagte in [How-to] Node.js für ioBroker richtig updaten:

                              cat /etc/apt/sources.list.d/nodesource.list
                              uname -a

                              stefan@iobrokerVM01:~$ cat /etc/apt/sources.list.d/nodesource.list
                              deb https://deb.nodesource.com/node_12.x buster main
                              deb-src https://deb.nodesource.com/node_12.x buster main
                              stefan@iobrokerVM01:~$ uname -a
                              Linux iobrokerVM01 4.19.0-8-686-pae #1 SMP Debian 4.19.98-1+deb10u1 (2020-04-27) i686 GNU/Linux
                              stefan@iobrokerVM01:~$
                              
                              

                              ioBroker läuft in einer VM unter Proxmox 6.0-4
                              50ef496e-6e4f-4978-b9a2-8d4f89ccac1d-image.png

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

                                @Stefan_1969
                                Ja, da läuft ein 32bit-System.
                                Da bekommst du die für 64bit-gebauten nodesource-Pakete nicht rein.

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

                                  @Thomas-Braun
                                  ... ich dachte kvm64 wäre 64-Bit

                                  Woran hast Du das erkannt?!

                                  J Thomas Braun 2 Replies Last reply Reply Quote 0
                                  • J
                                    Jan1 @Stefan_1969 last edited by Jan1

                                    @Stefan_1969
                                    ich denke daran:

                                    Linux iobrokerVM01 4.19.0-8-686-pae #1 SMP Debian 4.19.98-1+deb10u1 (2020-04-27) **i686** GNU/Linux
                                    

                                    Bei 64 Bit steht immer irgendwo 64 dabei

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

                                      @Stefan_1969
                                      Die Ausgabe von uname -a zeigt mir, dass da ein Kernel für 32bit (i686) laufen muss. Ich weiß ja nicht wie du Debian installiert hast, aber da hast du wohl 'daneben' gegriffen. Vermutlich ein 32bit-Image in die 64bit-VM gehämmert.

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

                                        @Thomas-Braun
                                        Vielen Dank für die Hilfe!

                                        Dann werde ich mal versuchen auf 64 bit zu kommen ....

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

                                          @Stefan_1969
                                          Das geht eigentlich nur durch Neuinstallation der richtigen Version.
                                          Alles andere setzt ernorme Klimmzüge voraus. chrooten, glibc neubauen etc. (Wenn das überhaupt so geht. Hab mir das nie angeschaut, vor Jahren war es jedenfalls nicht möglich).

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

                                            @Thomas-Braun 😖
                                            ... wir haben ja ein verregnetes Wochenende ...

                                            J Homoran 2 Replies 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

                                            912
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            installation linux node node.js nodejs windows
                                            106
                                            1105
                                            678528
                                            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