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

    • 15. 05. Wartungsarbeiten am ioBroker Forum

    • Monatsrückblick - April 2025

    • Minor js-controller 7.0.7 Update in latest repo

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

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

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

      weil auch andere Sachen auf dem pi habe?

      kann ja nicht hellsehen - dann viel Glück

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

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

        Hab dann alles mögliche probiert und dann ging es wieder.
        Leider nichts mitgeschrieben, sondern nur in panik google durchsucht.

        Das ist schlecht. Also Panik.

        Ich würde auf 18 gehen und mir dann die jeweiligen Adapter/Instanzen Stück für Stück anschauen.

        G 1 Reply Last reply Reply Quote 0
        • G
          grazer75 @Thomas Braun last edited by

          @thomas-braun 16er läuft wieder, weiß nicht ob es nur ble Adapter installieren und löschen war und deshalb alles wieder geht. Fehler sind alle wieder weg.

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

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

            BLE Adapter installiert und danach wieder gelöscht und die Fehler sind weg.

            Du weißt schon, dass gerade der BLE-Adapter neugebaut wird? Geht i.d.R. automatisch.

            G 1 Reply Last reply Reply Quote 0
            • G
              grazer75 @Thomas Braun last edited by grazer75

              @thomas-braun aber das installieren von ble und deinstallieren hat die Fehler bereinigt irgendwie

              Es geht wieder mit 16.x weiß nicht ob ich den Trick auf mit 18.x probieren sollte oder lieber froh sein das ich wieder einen funktionierenden iobroker hab ohne Fehler 🐶

              apollon77 1 Reply Last reply Reply Quote 0
              • apollon77
                apollon77 @grazer75 last edited by

                @grazer75 Hi,

                also ich kann es nur nochmals wiederholen ... alle Fehler aus dem ioBroker Log haben NICHTS mit der Node.js Version zu tun!! Da die plötzlich bei node.js 16 weg sind und bei 18 da sind ist aber mal soooowas von unerklärbar!

                1.) Javascript "Read-only state "javascript.0.MiHomeAll.lumi.158d0002a3299c.info.rssi" has been written ..." ist ein Fehler in einem deiner Skripte. Ein Objekt mit write:false darf nur mit ack=true beschrieben werden. Dieser Fehler KANN NICHT mit der Nodejs version zu tun haben, tut aber auch erstmal nicht weh

                2.) Tuya connect ECONNRESET bedeutet das das Tuya-Gerät die Verbindung resettet/abgelehnt/abgebrochen hat. Kann ebenso NICHTS mit Nodejs zu tun haben

                3.) Wifilight "(HF-LPT120) is not a known device type. Skipping this device!" ... die Meldung spricht auch für sich.

                4.) firetv "adb executable not found. undefined" sagt das ein executable nicht da ist ...

                ALso Wenn da vorher was tat und nach nodejs 18 nicht mehr dann ist das schon eher komisch und seehr unerklärlich. Da solltest Du denke ich mit etwas Zeit mal das Gesamtsysteme aus einem Backup restoren und neu aufsetzen und alles sauber wieder zum Laufen bekommen

                Atifan 1 Reply Last reply Reply Quote 0
                • Atifan
                  Atifan @apollon77 last edited by Atifan

                  Hi. irgendwie komme ich nicht auf node.js 18.16.0

                  Ich mache " curl -sL https://deb.nodesource.com/setup_18.x | sudo -E bash -"
                  Danach "sudo apt-get install -y nodejs`"

                  Es ist zwar dann 18.16.0 installiert. Aber wenn ich "node -v" eingebe, dann sagt er 16.19.0

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

                    @atifan

                    Wie immer:
                    Keine Screenshots aus der Konsole.

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

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

                      @atifan

                      Wie immer:
                      Keine Screenshots aus der Konsole.

                      Hm, wieso das denn? Ist das verboten? Wusste ich nicht. Aber wieso keine Screens von Console?

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

                        @atifan

                        Weil man die nicht immer lesen kann, man nicht daraus kopieren kann, der Text als Bild nicht von der Suchfunktion erfasst werden kann, ein Bild fetter ist als der reine Text, usw...

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

                          @atifan

                          Kannste jetzt gleich mit der Ausgabe zu

                          sudo ln -s /usr/bin/node /usr/bin/nodejs &> /dev/null
                          
                          uname -m && type -P nodejs node npm npx && nodejs -v && node -v && npm -v && npx -v && iob -v && whoami && groups && echo $XDG_SESSION_TYPE && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                          
                          

                          üben. Ich vermute aber stark, dass da die Pfade falsch sein werden.

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

                            OK 🙂 Dann hier meine Console als Code.

                            iobroker@iobroker:~$ node -v
                            v16.19.0
                            iobroker@iobroker:~$ curl -sL https://deb.nodesource.com/setup_18.x | sudo -E bash
                            
                            ## Installing the NodeSource Node.js 18.x repo...
                            
                            
                            ## Populating apt-get cache...
                            
                            + apt-get update
                            Hit:1 http://ftp.debian.org/debian bullseye InRelease
                            Hit:2 http://security.debian.org bullseye-security InRelease
                            Hit:3 http://ftp.debian.org/debian bullseye-updates InRelease
                            Hit:4 https://deb.nodesource.com/node_18.x bullseye InRelease
                            Hit:5 https://dl.yarnpkg.com/debian stable InRelease
                            Reading package lists... Done
                            
                            ## Confirming "bullseye" is supported...
                            
                            + curl -sLf -o /dev/null 'https://deb.nodesource.com/node_18.x/dists/bullseye/Release'
                            
                            ## Adding the NodeSource signing key to your keyring...
                            
                            + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | gpg --dearmor | tee /usr/share/keyrings/nodesource.gpg >/dev/null
                            
                            ## Creating apt sources list file for the NodeSource Node.js 18.x repo...
                            
                            + echo 'deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x bullseye main' > /etc/apt/sources.list.d/nodesource.list
                            + echo 'deb-src [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x bullseye main' >> /etc/apt/sources.list.d/nodesource.list
                            
                            ## Running `apt-get update` for you...
                            
                            + apt-get update
                            Hit:1 http://security.debian.org bullseye-security InRelease
                            Hit:2 http://ftp.debian.org/debian bullseye InRelease
                            Hit:3 https://deb.nodesource.com/node_18.x bullseye InRelease
                            Hit:4 http://ftp.debian.org/debian bullseye-updates InRelease
                            Hit:5 https://dl.yarnpkg.com/debian stable InRelease
                            Reading package lists... Done
                            
                            ## Run `sudo apt-get install -y nodejs` to install Node.js 18.x and npm
                            ## You may also need development tools to build native addons:
                                 sudo apt-get install gcc g++ make
                            ## To install the Yarn package manager, run:
                                 curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/yarnkey.gpg >/dev/null
                                 echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
                                 sudo apt-get update && sudo apt-get install yarn
                            
                            
                            iobroker@iobroker:~$ sudo apt-get install -y nodejs
                            Reading package lists... Done
                            Building dependency tree... Done
                            Reading state information... Done
                            nodejs is already the newest version (18.16.0-deb-1nodesource1).
                            0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
                            iobroker@iobroker:~$ node -v
                            v16.19.0
                            iobroker@iobroker:~$
                            
                            
                            Thomas Braun crunchip 2 Replies Last reply Reply Quote 0
                            • Thomas Braun
                              Thomas Braun Most Active @Atifan last edited by

                              @atifan

                              https://forum.iobroker.net/topic/35090/howto-nodejs-installation-und-upgrades-unter-debian/2

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

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

                                @atifan

                                https://forum.iobroker.net/topic/35090/howto-nodejs-installation-und-upgrades-unter-debian/2

                                OK Danke probiere ich mal.
                                Das hier spuckt er aus wenn ich oben das mache was du geschrieben hattest.

                                iobroker@iobroker:~$ sudo ln -s /usr/bin/node /usr/bin/nodejs &> /dev/null
                                iobroker@iobroker:~$ uname -m && type -P nodejs node npm npx && nodejs -v && node -v && npm -v && npx -v && iob -v && whoami && groups && echo $XDG_SESSION_TYPE && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                                x86_64
                                /usr/bin/nodejs
                                /usr/local/bin/node
                                /usr/local/bin/npm
                                /usr/local/bin/npx
                                v18.16.0
                                v16.19.0
                                8.19.3
                                8.19.3
                                4.0.24
                                iobroker
                                iobroker tty dialout audio video
                                tty
                                /home/iobroker
                                Hit:1 http://ftp.debian.org/debian bullseye InRelease
                                Hit:2 http://security.debian.org bullseye-security InRelease
                                Hit:3 http://ftp.debian.org/debian bullseye-updates InRelease
                                Hit:4 https://deb.nodesource.com/node_18.x bullseye InRelease
                                Hit:5 https://dl.yarnpkg.com/debian stable InRelease
                                Reading package lists... Done
                                Building dependency tree... Done
                                Reading state information... Done
                                All packages are up to date.
                                nodejs:
                                  Installed: 18.16.0-deb-1nodesource1
                                  Candidate: 18.16.0-deb-1nodesource1
                                  Version table:
                                 *** 18.16.0-deb-1nodesource1 500
                                        500 https://deb.nodesource.com/node_18.x bullseye/main amd64 Packages
                                        100 /var/lib/dpkg/status
                                     12.22.12~dfsg-1~deb11u3 500
                                        500 http://security.debian.org bullseye-security/main amd64 Packages
                                     12.22.5~dfsg-2~11u1 500
                                        500 http://ftp.debian.org/debian bullseye/main amd64 Packages
                                iobroker@iobroker:~$
                                
                                
                                Thomas Braun 1 Reply Last reply Reply Quote 0
                                • crunchip
                                  crunchip Forum Testing Most Active @Atifan last edited by

                                  @atifan und leg dir vllt nen neuen user an, der nicht gleich lautet wie der systeminterne iobroker

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

                                    @atifan

                                    Wie vorhergesagt: Falsche Pfade.
                                    v16.19.0 hast du also irgendwie am Paketmanager vorbei in das System geschraubt.

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

                                      Hi Danke für Eure Hilfe. Habe es nach der Anleitung hinbekommen, habe die Ordner wie in Anleitung gelöscht und danach gings 🙂
                                      Aber keine Ahnung wieso da was falsch war.
                                      Ich mache eig. immer nach der Anleitung die Updates.
                                      Aber egal, funktioniert wieder, Danke 🙂

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

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

                                        Aber keine Ahnung wieso da was falsch war.

                                        Weil die v16.19.0 von dir irgendwie anders draufgeklatscht worden ist.
                                        Eine ordentliche Installation über deinen Paketmanager landet nicht in /usr/local/bin

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

                                          @atifan

                                          Zeig mal die Ausgabe von

                                          iob diag
                                          

                                          Zusammenfassung reicht.

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

                                            ======================= SUMMARY =======================
                                                                 v.2023-04-16
                                            
                                            
                                            Operatingsystem:        Debian GNU/Linux 11 (bullseye)
                                            Kernel:                 5.15.104-1-pve
                                            Installation:           lxc
                                            Timezone:               Europe/Berlin (CEST, +0200)
                                            User-ID:                1000
                                            X-Server:               false
                                            Boot Target:            graphical.target
                                            
                                            Pending OS-Updates:     0
                                            Pending iob updates:    0
                                            
                                            Nodejs-Installation:    /usr/bin/nodejs         v18.16.0
                                                                    /usr/bin/node           v18.16.0
                                                                    /usr/bin/npm            9.5.1
                                                                    /usr/bin/npx            9.5.1
                                            
                                            Recommended versions are nodejs 18.x.y and npm 9.x.y
                                            Your nodejs installation is correct
                                            
                                            MEMORY:
                                                           total        used        free      shared  buff/cache   available
                                            Mem:            4.1G        2.4G        1.2G        0.0K        549M        1.7G
                                            Swap:             0B          0B          0B
                                            Total:          4.1G        2.4G        1.2G
                                            
                                            Active iob-Instances:   36
                                            Active repo(s): beta
                                            
                                            ioBroker Core:          js-controller           4.0.24
                                                                    admin                   6.4.3
                                            
                                            ioBroker Status:        iobroker is running on this host.
                                            
                                            
                                            Objects type: jsonl
                                            States  type: jsonl
                                            
                                            Status admin and web instance:
                                            + system.adapter.admin.0                  : admin                 : iobroker                                 -  enabled, port: 8081, bind: 0.0.0.0, run as: admin
                                            + system.adapter.web.0                    : web                   : iobroker                                 -  enabled, port: 8082, bind: 0.0.0.0, run as: admin
                                            
                                            Objects:                14041
                                            States:                 18902
                                            
                                            Size of iob-Database:
                                            
                                            19M     /opt/iobroker/iobroker-data/objects.jsonl
                                            11M     /opt/iobroker/iobroker-data/states.jsonl
                                            
                                            
                                            
                                            =================== END OF SUMMARY ====================
                                            
                                            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

                                            510
                                            Online

                                            31.6k
                                            Users

                                            79.4k
                                            Topics

                                            1.3m
                                            Posts

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