Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Node.js für ioBroker update klappt nicht

    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

    Node.js für ioBroker update klappt nicht

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

      @hotspot_2

      Ja, die Dateien löschen.
      Und nicht als root herumkaspern.
      Und die Quellen konsistent halten. Bei dir spukt da noch was von Stretch herum.

      Und nodejs16 auch richtig in der nodesource.list eintragen.

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

        @thomas-braun sagte in Node.js für ioBroker update klappt nicht:

        @hotspot_2

        Ja, die Dateien löschen.

        Ok, lösche die beiden die ich oben markiert habe.

        Und nicht als root herumkaspern.

        Und die Quellen konsistent halten. Bei dir spukt da noch was von Stretch herum.

        Da fehlt mir noch einiges an Linux Kenntnissen. Kleiner Tipp wie ich das machen kann?

        Und nodejs16 auch richtig in der nodesource.list eintragen.

        Das ist auch ausserhalb von meinem sehr kleinen Linux-Kenntnisuniversums ;).

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

          @hotspot_2

          Steht soweit alles in meiner Signatur drin.

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

            @thomas-braun Alles klar, dann lese ich mich da mal rein.

            root@iobroker:/opt/iobroker# 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
            x86_64
            /usr/bin/nodejs
            /usr/local/bin/node
            /usr/bin/npm
            v16.19.0
            bash: /usr/local/bin/node: Datei oder Verzeichnis nicht gefunden
            root@iobroker:/opt/iobroker#
            
            

            Ausgabe sieht jetzt so aus. Jetzt installiere ich nochmal mit apt --reinstall und dann sollte es ja passen.

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

              @hotspot_2

              Nee, passt nicht. Du musst schon beide Dateien löschen.

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

                @thomas-braun Hatte ich gemacht. Im Verzeichnis /usr/local/bin gibt es jetzt nur noch "corepack" und "npx"

                Sieht man oben was ich noch zu löschen habe?

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

                  @hotspot_2

                  npx und corepack auch löschen.

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

                    @thomas-braun So, die root-Zeiten sind beendet.

                    marcus@iobroker:/usr/local/bin$ 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
                    x86_64
                    /usr/bin/nodejs
                    /usr/bin/node
                    /usr/bin/npm
                    v16.19.0
                    v16.19.0
                    8.19.3
                    4.0.24
                    marcus
                    marcus cdrom floppy sudo audio dip video plugdev netdev
                    tty
                    /usr/local/bin
                    OK:1 http://security.debian.org/debian-security bullseye-security InRelease
                    OK:2 http://deb.debian.org/debian bullseye InRelease
                    OK:3 https://repos.influxdata.com/debian stretch InRelease
                    OK:4 http://deb.debian.org/debian bullseye-updates InRelease
                    OK:5 https://packages.grafana.com/oss/deb stable InRelease
                    OK:6 https://deb.nodesource.com/node_14.x bullseye InRelease
                    Paketlisten werden gelesen… Fertig
                    nodejs:
                      Installiert:           16.19.0-deb-1nodesource1
                      Installationskandidat: 16.19.0-deb-1nodesource1
                      Versionstabelle:
                     *** 16.19.0-deb-1nodesource1 100
                            100 /var/lib/dpkg/status
                         14.21.1-deb-1nodesource1 500
                            500 https://deb.nodesource.com/node_14.x bullseye/main amd64 Packages
                         12.22.12~dfsg-1~deb11u1 500
                            500 http://security.debian.org/debian-security bullseye-security/main amd64 Packages
                         12.22.5~dfsg-2~11u1 500
                            500 http://deb.debian.org/debian bullseye/main amd64 Packages
                    marcus@iobroker:/usr/local/bin$
                    
                    

                    Passt das jetzt? Und jetzt muss ich nodejs nochmal, wie in dem Post beschrieben, neu installieren? Und dann sollte es soweit wieder passen?

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

                      @hotspot_2

                      Nein, wie installierst du nodeJS16 überhaupt? Aus dem Paketmanager kann das nicht kommen, ist da nämlich nicht angelegt.

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

                        @hotspot_2 sagte in Node.js für ioBroker update klappt nicht:

                        Passt das jetzt?

                        @Thomas-Braun muss marcus nicht auch in der Gruppe iobroker sein?

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

                          @thomas-braun

                          Das wurde über apt-get installiert. "sudo apt-get install -y nodejs" Wenn ich das ausführe sagt er mir es wäre schon installiert und auf 16.19.0.

                          Ich bin mir fast sicher das es beim letzten Mal mit kam als ich ganz normal Updates gemacht habe mit apt-get.

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

                            @homoran sagte in Node.js für ioBroker update klappt nicht:

                            muss marcus nicht auch in der Gruppe iobroker sein?

                            Würde sich empfehlen.

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

                              @hotspot_2 sagte in Node.js für ioBroker update klappt nicht:

                              Ich bin mir fast sicher das es beim letzten Mal mit kam als ich ganz normal Updates gemacht habe mit apt-get.

                              Nein, kann nicht sein, das Repository enthält keinen Eintrag (mehr) für nodejs16, nur für 14.
                              Entweder die nodesource.list editieren oder das Installer Skript für nodeJS16 ausführen.

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

                                @thomas-braun Das habe ich jetzt gemacht. marcus ist jetzt in der Gruppe iobroker und sudo drin (und noch ein paar andere). In der Gruppe root ist kein user drin.

                                Wäre es zu viel verlangt wenn ihr mal kurz meine nodesource.list euch anschauen würdet? Vielleicht auch mal das "stretch" Thema überprüfen von vorhin? Ich glaub ich bin da erstmal überfordert. Obwohl ich den Punkt gerade in der Anleitung gelesen habe, wenn das einfach nur copy/paste ist aus der Anleitung sollte ich das auch hinbekommen.

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

                                  @hotspot_2

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

                                  Aber da wird nur 14 eingetragen sein. Trag da 16 nach und gut ist.

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

                                    @hotspot_2

                                    In der influxdb.list stretch durch bullseye ersetzen.

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

                                      @thomas-braun

                                      So, jetzt hat die Neuinstallation geklappt.

                                      Passt das jetzt?

                                      marcus@iobroker:/etc/apt/sources.list.d$ sudo 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
                                      x86_64
                                      /usr/bin/nodejs
                                      /usr/bin/node
                                      /usr/bin/npm
                                      v16.19.0
                                      v16.19.0
                                      8.19.3
                                      4.0.24
                                      marcus
                                      marcus cdrom floppy sudo audio dip video plugdev netdev
                                      tty
                                      /etc/apt/sources.list.d
                                      OK:1 http://security.debian.org/debian-security bullseye-security InRelease
                                      OK:2 http://deb.debian.org/debian bullseye InRelease
                                      OK:3 http://deb.debian.org/debian bullseye-updates InRelease
                                      OK:4 https://repos.influxdata.com/debian bullseye InRelease
                                      OK:5 https://packages.grafana.com/oss/deb stable InRelease
                                      OK:6 https://deb.nodesource.com/node_14.x bullseye InRelease
                                      OK:7 https://deb.nodesource.com/node_16.x bullseye 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 bullseye/main amd64 Packages
                                              100 /var/lib/dpkg/status
                                           14.21.1-deb-1nodesource1 500
                                              500 https://deb.nodesource.com/node_14.x bullseye/main amd64 Packages
                                           12.22.12~dfsg-1~deb11u1 500
                                              500 http://security.debian.org/debian-security bullseye-security/main amd64 Packages
                                           12.22.5~dfsg-2~11u1 500
                                              500 http://deb.debian.org/debian bullseye/main amd64 Packages
                                      marcus@iobroker:/etc/apt/sources.list.d$
                                      
                                      
                                      

                                      Woran liegt das eigentlich das ich die sudo und die iobroker Gruppe nicht angezeigt bekomme wenn ich mit groups das abfrage mit cat /etc/group aber marcus in beiden Gruppen drin steht?

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

                                        @hotspot_2 sagte in Node.js für ioBroker update klappt nicht:

                                        Woran liegt das eigentlich das ich die sudo und die iobroker Gruppe nicht angezeigt bekomme wenn ich mit groups das abfrage mit cat /etc/group aber marcus in beiden Gruppen drin steht?

                                        Log den 'marcus' mal richtig aus und wieder ein. Gruppenzugehörigkeiten werden nur beim LogIn gesetzt.

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

                                          @thomas-braun

                                          Dankeschön!

                                          x86_64
                                          /usr/bin/nodejs
                                          /usr/bin/node
                                          /usr/bin/npm
                                          v16.19.0
                                          v16.19.0
                                          8.19.3
                                          4.0.24
                                          marcus
                                          marcus cdrom floppy sudo audio dip video plugdev netdev iobroker
                                          tty
                                          /home/marcus
                                          OK:1 http://security.debian.org/debian-security bullseye-security InRelease
                                          OK:2 http://deb.debian.org/debian bullseye InRelease
                                          OK:3 http://deb.debian.org/debian bullseye-updates InRelease
                                          OK:4 https://packages.grafana.com/oss/deb stable InRelease
                                          OK:5 https://repos.influxdata.com/debian bullseye InRelease
                                          OK:6 https://deb.nodesource.com/node_14.x bullseye InRelease
                                          OK:7 https://deb.nodesource.com/node_16.x bullseye 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 bullseye/main amd64 Packages
                                                  100 /var/lib/dpkg/status
                                               14.21.1-deb-1nodesource1 500
                                                  500 https://deb.nodesource.com/node_14.x bullseye/main amd64 Packages
                                               12.22.12~dfsg-1~deb11u1 500
                                                  500 http://security.debian.org/debian-security bullseye-security/main amd64 Packages
                                               12.22.5~dfsg-2~11u1 500
                                                  500 http://deb.debian.org/debian bullseye/main amd64 Packages
                                          
                                          

                                          Ist jetzt soweit alles in Ordnung?

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

                                            @hotspot_2

                                            Ja, jetzt passt es.

                                            H 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

                                            893
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            13
                                            92
                                            19111
                                            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