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

                                      @basti97

                                      Was gibt

                                      which nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                                      

                                      zurück?

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

                                        @thomas-braun

                                        pi@Media04:~ $ which nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs 
                                        /usr/bin/nodejs
                                        /usr/bin/node
                                        /usr/bin/npm
                                        v14.19.0
                                        v14.19.0
                                        6.14.16
                                        pi
                                        /home/pi
                                        OK:1 http://raspbian.raspberrypi.org/raspbian stretch InRelease
                                        OK:2 http://archive.raspberrypi.org/debian stretch InRelease
                                        OK:3 https://linux.teamviewer.com/deb stable InRelease
                                        OK:4 https://deb.nodesource.com/node_14.x stretch InRelease
                                        Paketlisten werden gelesen... Fertig
                                        Abhängigkeitsbaum wird aufgebaut.       
                                        Statusinformationen werden eingelesen.... Fertig
                                        Aktualisierung für 4 Pakete verfügbar. Führen Sie »apt list --upgradable« aus, um sie anzuzeigen.
                                        nodejs:
                                         Installiert:           14.19.0-1nodesource1
                                         Installationskandidat: 14.19.0-1nodesource1
                                         Versionstabelle:
                                        *** 14.19.0-1nodesource1 500
                                               500 https://deb.nodesource.com/node_14.x stretch/main armhf Packages
                                               100 /var/lib/dpkg/status
                                            8.11.1~dfsg-2~bpo9+1 500
                                               500 http://archive.raspberrypi.org/debian stretch/main armhf Packages
                                            4.8.2~dfsg-1 500
                                               500 http://raspbian.raspberrypi.org/raspbian stretch/main armhf Packages
                                        pi@Media04:~ $ 
                                        
                                        
                                        Thomas Braun 1 Reply Last reply Reply Quote 0
                                        • Thomas Braun
                                          Thomas Braun Most Active @Basti97 last edited by

                                          @basti97

                                          stretch ist EOL, spring auf was lebendes.
                                          Und Teamviewer hat auf einem Server auch nix verloren.

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

                                            @thomas-braun Ok dann deinstalliere ich Team Viewer. Ist per SSH besser.
                                            Und was könnte ich nun gegen die Fehlermeldung machen.

                                            Ich habe jetzt mal den befehl upgradable gemacht weil es im Text stand. Und da kam das raus.

                                            pi@Media04:~ $ apt list --upgradable
                                            Auflistung... Fertig
                                            python-gpiozero/oldoldstable 1.5.0 all [aktualisierbar von: 1.4.1]
                                            python3-gpiozero/oldoldstable 1.5.0 all [aktualisierbar von: 1.4.1]
                                            python3-thonny/oldoldstable 3.1.0-1+rpt2 all [aktualisierbar von: 3.0.8-1+rpt1]
                                            teamviewer-host/stable 15.26.4 armhf [aktualisierbar von: 15.13.6]
                                            pi@Media04:~ $ 
                                            
                                            
                                            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

                                            819
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

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