Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. NodeRed fkt. nicht nach Node.js Update auf 18.20.2

    NEWS

    • [erledigt] 15. 05. Wartungsarbeiten am ioBroker Forum

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    NodeRed fkt. nicht nach Node.js Update auf 18.20.2

    This topic has been deleted. Only users with topic management privileges can see it.
    • Marc Berg
      Marc Berg Most Active @haus-automatisierung last edited by

      @haus-automatisierung sagte in NodeRed fkt. nicht nach Node.js Update auf 18.20.2:

      Am einfachsten geht das wahrscheinlich mit einem Downgrade des Node-RED Adapters und dann wieder ein Upgrade auf die aktuelle Version zurück. Dann müsste das aktuellste Node-RED (mit dem Patch) installiert werden.

      @thomas-braun sagte in NodeRed fkt. nicht nach Node.js Update auf 18.20.2:

      iob upgrade node-red@5.2.0

      sollte doch auch die Deps nochmal abklappern.

      Geht beides auf einem Linux System nicht. Node-Red bleibt bei 3.1.5

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

        @marc-berg

        The right way is to execute npm update. It's a really powerful command, it updates the missing packages and also checks if a newer version of package already installed can be used.

        Read Intro to NPM to understand what you can do with npm.

        Also müsste ein

        iob upgrade node-red@5.2.0
        

        das eigentlich alles hochziehen. Es wird dann gefragt, ob die Version wirklich reinstalliert werden soll.

        Edit: Kommando geändert - upgrade statt update muss das lauten. Und das es so funktioniert: Siehe unten.

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

          @thomas-braun sagte in NodeRed fkt. nicht nach Node.js Update auf 18.20.2:

          iob update node-red@5.2.0

          Computer sagt: Nö!

          iobroker@iobroker:~$ iob upgrade node-red@5.2.0
          Would you like to reinstall version 5.2.0 of node-red now? [(y)es, (n)o]: y
          Update node-red from @5.2.0 to @5.2.0
          host.iobroker Adapter "system.adapter.node-red.0" is stopped.
          NPM version: 10.5.2
          Installing iobroker.node-red@5.2.0... (System call)
          
          up to date in 3s
          
          109 packages are looking for funding
            run `npm fund` for details
          upload [13] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/de/translations.json i18n/de/translations.json application/json
          upload [12] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/en/translations.json i18n/en/translations.json application/json
          upload [11] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/es/translations.json i18n/es/translations.json application/json
          upload [10] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/fr/translations.json i18n/fr/translations.json application/json
          upload [9] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/it/translations.json i18n/it/translations.json application/json
          upload [8] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/nl/translations.json i18n/nl/translations.json application/json
          upload [7] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/pl/translations.json i18n/pl/translations.json application/json
          upload [6] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/pt/translations.json i18n/pt/translations.json application/json
          upload [5] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/ru/translations.json i18n/ru/translations.json application/json
          upload [4] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/uk/translations.json i18n/uk/translations.json application/json
          upload [3] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/zh-cn/translations.json i18n/zh-cn/translations.json application/json
          upload [2] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/jsonConfig.json jsonConfig.json application/json
          upload [1] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/node-red.png node-red.png image/png
          upload [0] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/words.js words.js application/javascript
          host.iobroker Adapter "system.adapter.node-red.0" is started
          
          iobroker@iobroker:~$ npm ls node-red
          iobroker.inst@3.0.0 /opt/iobroker
          └─┬ iobroker.node-red@5.2.0
            └── node-red@3.1.5
          
          Thomas Braun 1 Reply Last reply Reply Quote 0
          • Thomas Braun
            Thomas Braun Most Active @Marc Berg last edited by Thomas Braun

            @marc-berg sagte in NodeRed fkt. nicht nach Node.js Update auf 18.20.2:

            iobroker@iobroker:~$ npm ls node-red

            Du stehst aber auch nicht im Installationsverzeichnis vom ioBroker sondern in dessen home.

            cd /opt/iobroker
            npm ls node-red
            

            Es sei denn, du hast das bei der Installation auf ~ umgebogen.

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

              @thomas-braun sagte in NodeRed fkt. nicht nach Node.js Update auf 18.20.2:

              Du stehst aber auch nicht im Installationsverzeichnis vom ioBroker sondern in dessen home.

              Zumindest im Container ist das home Verzeichnis des Users "iobroker" = /opt/iobroker. Nichts umgebogen.

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

                @marc-berg sagte in NodeRed fkt. nicht nach Node.js Update auf 18.20.2:

                Zumindest im Container ist das home Verzeichnis des Users "iobroker" = /opt/iobroker. Nichts umgebogen.

                Ist mir neu. Wird im iob diag nämlich auch nicht berücksichtigt und das funktioniert da mit cwd /opt/iobroker

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

                  @thomas-braun sagte in NodeRed fkt. nicht nach Node.js Update auf 18.20.2:

                  Ist mir neu.

                  Steht aber so im Dockerfile

                      # Setting up iobroker-user
                      && chsh -s /bin/bash iobroker \
                      && usermod --home /opt/iobroker iobroker \
                      && usermod -u 1000 iobroker \
                      && groupmod -g 1000 iobroker \
                      && chown root:iobroker /usr/sbin/gosu \
                  
                  Thomas Braun 1 Reply Last reply Reply Quote 0
                  • Thomas Braun
                    Thomas Braun Most Active @Marc Berg last edited by

                    @marc-berg

                    Ach, docker? Die Dinger interessieren mich nicht.
                    Bei LXCs hast du aber definitv /opt/iobroker als Installationsverzeichnis als Default.

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

                      @thomas-braun sagte in NodeRed fkt. nicht nach Node.js Update auf 18.20.2:

                      Ach, docker? Die Dinger interessieren mich nicht.
                      Bei LXCs hast du aber definitv /opt/iobroker als Installationsverzeichnis als Default.

                      Welche Relevanz hat das jetzt gerade für das aktuelle Problem? Unter einer VM habe ich das gleiche Verhalten, dass ich Node-Red nicht auf die 3.19 gehoben bekomme. Es sei denn, ich deinstalliere komplett.

                      Homoran Thomas Braun 2 Replies Last reply Reply Quote 1
                      • Homoran
                        Homoran Global Moderator Administrators @Marc Berg last edited by

                        @marc-berg sagte in NodeRed fkt. nicht nach Node.js Update auf 18.20.2:

                        Welche Relevanz hat das jetzt gerade für das aktuelle Problem?

                        nur dass Thomas sichergestellt haben möchte, dass der Versuch korrekt gelaufen ist, und das frustrane Ergebnis nicht aufgrund falscher Durchführung existiert

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

                          @marc-berg sagte in NodeRed fkt. nicht nach Node.js Update auf 18.20.2:

                          Welche Relevanz hat das jetzt gerade für das aktuelle Problem?

                          Nur insofern, dass ich in Unkenntnis der Docker-Situation davon ausgehen muss, dass ~ nach /home/USER führt und nicht nach /opt/iobroker.

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

                            Ich habe das Thema REINSTALLATION vor Kurzem getestet. Und nein, node / iobroker reinstalliert definitiv zumindest den Adapter nicht nochmals , wenn schon was in der selben Version installiert ist.

                            Siehe: https://github.com/ioBroker/ioBroker.js-controller/issues/2667

                            Ob dependencies aktualisiert werden hab ich da nicht getestet.

                            mcm1957 created this issue in ioBroker/ioBroker.js-controller

                            closed [enhancement]: improve reinstall of existing adapter release #2667

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

                              @mcm57 sagte in NodeRed fkt. nicht nach Node.js Update auf 18.20.2:

                              Ob dependencies aktualisiert werden hab ich da nicht getestet.

                              Werden sie. Zumindest auf meinem System...

                              echad@chet:/opt/iobroker $ npm ls node-red
                              iobroker.inst@3.0.0 /opt/iobroker
                              `-- iobroker.node-red@5.2.0
                                `-- node-red@3.1.2
                              
                              echad@chet:/opt/iobroker $ iob upgrade node-red@5.2.0
                              Would you like to reinstall version 5.2.0 of node-red now? [(y)es, (n)o]: y
                              Update node-red from @5.2.0 to @5.2.0
                              host.chet Adapter "system.adapter.node-red.0" is stopped.
                              NPM version: 10.5.0
                              Installing iobroker.node-red@5.2.0... (System call)
                              
                              removed 722 packages, and changed 13 packages in 13s
                              
                              143 packages are looking for funding
                                run `npm fund` for details
                              upload [13] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/de/translations.json i18n/de/translations.json application/json
                              upload [12] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/en/translations.json i18n/en/translations.json application/json
                              upload [11] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/es/translations.json i18n/es/translations.json application/json
                              upload [10] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/fr/translations.json i18n/fr/translations.json application/json
                              upload [9] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/it/translations.json i18n/it/translations.json application/json
                              upload [8] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/nl/translations.json i18n/nl/translations.json application/json
                              upload [7] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/pl/translations.json i18n/pl/translations.json application/json
                              upload [6] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/pt/translations.json i18n/pt/translations.json application/json
                              upload [5] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/ru/translations.json i18n/ru/translations.json application/json
                              upload [4] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/uk/translations.json i18n/uk/translations.json application/json
                              upload [3] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/zh-cn/translations.json i18n/zh-cn/translations.json application/json
                              upload [2] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/jsonConfig.json jsonConfig.json application/json
                              upload [1] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/node-red.png node-red.png image/png
                              upload [0] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/words.js words.js application/javascript
                              host.chet Adapter "system.adapter.node-red.0" is started
                              echad@chet:/opt/iobroker $ npm ls node-red
                              iobroker.inst@3.0.0 /opt/iobroker
                              `-- iobroker.node-red@5.2.0
                                `-- node-red@3.1.9
                              
                              echad@chet:/opt/iobroker $ 
                              
                              
                              mcm1957 1 Reply Last reply Reply Quote 1
                              • mcm1957
                                mcm1957 @Thomas Braun last edited by

                                @thomas-braun
                                OK danke,
                                Dann optimiert node nur die Installation identer Versionen weg.

                                Hintergrund (bei mir):
                                Nach ein wenig direkter Pfusch in den Scripts wg. Debugging wollte ich alle Datein wieder auf den offiziellen Stand bringen - daher reinstallationd erselben Versione - neda, das geht so nicht 😞

                                haus-automatisierung 1 Reply Last reply Reply Quote 0
                                • haus-automatisierung
                                  haus-automatisierung Developer Most Active @mcm1957 last edited by

                                  @mcm57 Ne, dann wird ja auch nix gemacht, weil npm denkt es ist immer alles so wie installiert. Es wird ja nicht jede Datei geprüft (ob die zur noch Version passt).

                                  mcm1957 1 Reply Last reply Reply Quote 0
                                  • mcm1957
                                    mcm1957 @haus-automatisierung last edited by mcm1957

                                    @haus-automatisierung said in NodeRed fkt. nicht nach Node.js Update auf 18.20.2:

                                    @mcm57 Ne, dann wird ja auch nix gemacht, weil npm denkt es ist immer alles so wie installiert. Es wird ja nicht jede Datei geprüft (ob die zur noch Version passt).

                                    Ja - das weiß ich jetzt auch. Nur versteh zumindest ich unter REINSTALLATION was anderes. Reinstallation bedeutet für mich, dass der Stand wie nach einer Installation hergestellt wird - zumindest was Code & Libraries betrifft - nicht den Datenbestand. Daher auch das Issue. Minimal ist der Text irreführend. Aber es spricht m.E. auch nichts dagegen npm deinstall und install zu machen und damit wirklich alles zu erneuern. Derzeit geht das nur über downgrade / upgrade oder manuell mit npm. Beides eindeutig zweite Wahl Lösungen.

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

                                      Was npm (nicht iobroker!!) bei einem reinstall tut weiss man nie so genau. Das Paket was man reinstalliert - wenn gleiche version - das fasst er denke nicht an. Was npm mit Sub Deps machen ... keine Ahnung und gefühlt Sonnenfleckenabhängig. Also am besten reinstall ...

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

                                        @apollon77
                                        iobroker reinstall macht derzeit noch ein npm i reinstall ...
                                        Aber ich habe schon ein commit gesehen dass da in Zukunft ein echtes uninstall / reinstall erfolgen sollte.

                                        mcm1957 1 Reply Last reply Reply Quote 0
                                        • mcm1957
                                          mcm1957 @mcm1957 last edited by

                                          Und noch was - keine Ahnung ob das auch ioBroker / node-red betrifft:

                                          https://github.com/node-red/node-red/pull/4652

                                          Ein Windows security Fix hat node-red auf windows getroffen. Wurde bereits gefixed.

                                          knolleary created this issue in node-red/node-red

                                          closed Fix use of spawn on windows with cmd files #4652

                                          U 1 Reply Last reply Reply Quote 0
                                          • U
                                            undeat @mcm1957 last edited by

                                            @mcm57 Ich habe das gleiche Problem. Der Telegram Adapter und der vom Saugroboter haben mich auf node 18.20 gezwungen aber jetzt geht node red nicht mehr. Der Fix für Node Red sollte ja da sein, aber wie bekomme ich den in das Node Red vom Iobroker? Ein Update für den Adapter gibt es noch nicht, auch nicht als Beta.

                                            mcm1957 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            755
                                            Online

                                            31.6k
                                            Users

                                            79.5k
                                            Topics

                                            1.3m
                                            Posts

                                            11
                                            49
                                            2082
                                            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