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.
    • Thomas Braun
      Thomas Braun Most Active @Nagamichisan last edited by Thomas Braun

      @nagamichisan

      Dann lies dich hier ein:

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

      Da sind eigentlich alle gängigen Fallstricke erklärt.

      Telnet

      O-O Ich hoffe das ist nicht telnet sondern eine ssh-Verbindung.

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

        @thomas-braun
        ja sorry, meinte Putty (SSH) 😉

        DANKE, die Pfade waren falsch (local/bin/node + npm). Jetzt passt alles wieder.

        1 Reply Last reply Reply Quote 0
        • Basti97
          Basti97 Most Active last edited by

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

          @basti97 langsam. …. Zuerst alle Adapter soweit es geht aktualisieren. Controller auf 3.3. nochmal Adapter was geht. Dann nodejs

          Wie kann ich den js controller in 3.3 erstmal updaten? Oder ist js 3.3 aktuell
          iobroker stop
          iobroker update
          iobroker upgrade self
          iobroker start

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

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

            Oder ist js 3.3 aktuell

            github:	4.0.4
            latest:	4.0.4 for 0 days
            stable:	3.3.22 for 48 days
            
            1 Reply Last reply Reply Quote 0
            • Basti97
              Basti97 Most Active last edited by

              @homoran Danke
              Ich wollte jetzt mein Slave aktualisieren aber irgendwie hat es nicht funktoniert. Wie kann ich ihn nun auf die neuste Version JS und nodejs aktualisieren?

              iobroker upgrade self
              Update js-controller from @2.2.9 to @3.3.22
              NPM version: 6.14.12
              npm install iobroker.js-controller@3.3.22 --unsafe-perm --loglevel error --prefix "/opt/iobroker" (System call)
              npm ERR! code ENOTSUP
              npm ERR! notsup Unsupported engine for winston-daily-rotate-file@4.6.0: wanted: {"node":">=12"} (current: {"node":"10.24.1","npm":"6.14.12"})
              npm ERR! notsup Not compatible with your version of node/npm: winston-daily-rotate-file@4.6.0
              npm ERR! notsup Not compatible with your version of node/npm: winston-daily-rotate-file@4.6.0
              npm ERR! notsup Required: {"node":">=12"}
              npm ERR! notsup Actual:   {"npm":"6.14.12","node":"10.24.1"}
              
              npm ERR! A complete log of this run can be found in:
              npm ERR!     /home/iobroker/.npm/_logs/2022-02-07T18_18_37_244Z-debug.log
              Starting node restart.js
              
              
              bahnuhr Thomas Braun apollon77 3 Replies Last reply Reply Quote 0
              • bahnuhr
                bahnuhr Forum Testing Most Active @Basti97 last edited by bahnuhr

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

                npm ERR! notsup Required: {"node":">=12"}
                npm ERR! notsup Actual: {"npm":"6.14.12","node":"10.24.1"}

                steht eigentlich alles da.
                Du hast node 10, brauchst aber mindestens node 12 !

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

                  @basti97

                  Schau in meiner Signatur, da steht's drin.

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

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

                    winston-daily-rotate-file

                    Tja, da hat uns wohl eine Library die wir nutzen einen Breaking CHange verpasst mit dem man an sich so nicht rechnet 😞
                    Mal schauen ob was kommt: https://github.com/winstonjs/winston-daily-rotate-file/issues/334

                    Apollon77 created this issue in winstonjs/winston-daily-rotate-file

                    closed Why Nodejs Requirement was increased in a minor update? #334

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

                      @apollon77 Mein Hauptsystem ist ja auf den "neusten Stand" mit JS3.3.2

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

                        @apollon77 Naja, darf man nicht die abgekündigten nodeJS-Versionen hinter sich lassen?

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

                          @thomas-braun @bahnuhr Also aktualisiere ich nodejs auf die Version 12 und dannach den JS Controller auf 3.3.2 Zum Schluss brauche ich dann nur noch nodejs auf die Empfohlene Version aktualisieren.
                          Und dann wäre ich fertig.

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

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

                            Also aktualisiere ich nodejs auf die Version 12

                            Geh direkt auf 14, das ist die derzeitig empfohlene Version.
                            Imkrementelle Updates sind hier nicht erforderlich.

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

                              @thomas-braun Ok dann probiere ich es morgen erst nodejs und wenn dieser auf der Version 14 ist. Aktualisiere ich dann den JS Controller und gegeben falls die beiden Adapter.
                              Ich habe heute schon ein Backup der Karte gemacht sollte eigentlich im Notfall funktionieren.

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

                                @basti97

                                Update von nodejs ist eigentlich ein Kinderspiel.

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

                                  @thomas-braun Ich hatte im Dezember mein Hauptsystem komplett neu installiert da es nun auf einer neuen Hardware ist. Und da musste ich auch wieder nodejs installieren und das hat auch geklappt.
                                  Naja vielleicht hätte ich das ganze schon mal eher aktualisieren sollen. Damit nicht so große Sprünge sind. 🙂

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

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

                                    Damit nicht so große Sprünge sind.

                                    Ja, das ist ein guter Ansatz. Regelmäßig Updates einspielen macht das Leben leichter.

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

                                      @thomas-braun Das merke ich jetzt npm sollte er ja bei der Aktualisierung von nodejs auch mit updaten.

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

                                        @basti97

                                        Ja, aber fummel da nicht am Paketmanager vorbei dran rum.

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

                                          @thomas-braun Darf man, mit einem Major Version einer Library gern :-)) In dem Fall wurde (ohne für mich ersichtlichen Grund) die Minimum nodejs Version der Library von 8 auf 12 angehoben ... in Version 4.6.0 ... Grenzwertig

                                          1 Reply Last reply Reply Quote 0
                                          • Basti97
                                            Basti97 Most Active last edited by Basti97

                                            @apollon77 @Thomas Braun
                                            So ich habe jetzt nodejs aktualisiert auf 14. und nun wollte ich den js Controller aktualisieren. Aber irgendwie kommen fehler. Was muss ich jetzt machen.

                                            -db (2.7.6.1-2) werden verarbeitet ...
                                            pi@Media04:~ $ node -v
                                            v14.19.0
                                            pi@Media04:~ $ nodejs -v
                                            v14.19.0
                                            pi@Media04:~ $ npm-v
                                            bash: npm-v: Kommando nicht gefunden.
                                            pi@Media04:~ $ npm -v
                                            6.14.16
                                            
                                            
                                             iobroker upgrade self
                                            Update js-controller from @2.2.9 to @3.3.22
                                            NPM version: 6.14.16
                                            npm install iobroker.js-controller@3.3.22 --unsafe-perm --loglevel error --prefix "/opt/iobroker" (System call)
                                            npm ERR! code ELIFECYCLE
                                            npm ERR! errno 22
                                            npm ERR! iobroker.js-controller@3.3.22 install: `node iobroker.js setup first`
                                            npm ERR! Exit status 22
                                            npm ERR! 
                                            npm ERR! Failed at the iobroker.js-controller@3.3.22 install script.
                                            npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
                                            
                                            npm ERR! A complete log of this run can be found in:
                                            npm ERR!     /home/iobroker/.npm/_logs/2022-02-08T09_11_26_083Z-debug.log
                                            host.Media04 Cannot install iobroker.js-controller@3.3.22: 22
                                            
                                            
                                            Thomas Braun apollon77 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

                                            842
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

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