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.
    • 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
                                    • J
                                      Jan1 @Stefan_1969 last edited by

                                      @Stefan_1969
                                      Ne neue Linux Installation ist in ner guten Stunde erledigt, so lange solls nicht regnen 😉

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

                                        @Stefan_1969
                                        Backup machen
                                        VM mit debian Netinstall AMD64 image (parallel) neu ausetzen
                                        Backup zurückspielen
                                        nach einer halben Stunde könntest du fertig sein

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

                                          @Jan1
                                          Das nicht 😊
                                          aber bis wieder alles läuft ...

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

                                            @Homoran @Jan1
                                            Wenn das alles auf der selben Maschinen läuft:
                                            ioBroker, grafana, influx, mariaDB, pihole, MotionEye auf proxmox

                                            ist das schon etwas mehr Aufwand.

                                            Homoran S 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

                                            946
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

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