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.
    • apollon77
      apollon77 @Basti97 last edited by

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

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

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

        iobroker update -u

        iobroker update -u
        Used repository: default
        hash changed or no sources cached => force download of new sources
        update done
        
        

        Da kommt nur das hier

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

          @apollon77 Ok Dann warte ich lieber erstmal die ganzen spiele rein was ich gerade gemacht habe mit den pis ist nicht so schlimm wenn sie nicht gleich funktionieren. Aber wenn mein Slave Raspberry von meinen Hauptsystem ausfällt wäre schon schlimmer. 🙂

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

            Hallo, ich würde gerne bei meinem PI4 auf die neuste node.js upgraden.
            Von 12.18.4 auf 14.18.2.
            Dafür gehe ich wie oben besprieben vor:

            cd /opt/iobroker
            iobroker backup
            iobroker stop
            curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
            sudo apt-get install -y nodejs

            Aber leider bleibt es bei der alten Version. Es werden keine Fehlermeldungen angezeigt. Schaut aber so aus, als ob es nicht weiterginge.
            Alle Adapter sind auf dem neusten Stand inkl. js.controller (3.3.22) & NPM (6.14.8).
            Da ich kein Linux-Mensch bin, komme ich da jetzt leider nicht weiter und hoffe auf eure Hilfe.

            Ausgabe im Putty:

            pi@raspberrypi4-iob:/opt/iobroker $ curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
            
            ## Installing the NodeSource Node.js 14.x repo...
            
            
            ## Populating apt-get cache...
            
            + apt-get update
            OK:1 http://archive.raspberrypi.org/debian buster InRelease
            OK:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
            OK:3 http://phoscon.de/apt/deconz buster InRelease
            OK:4 https://deb.nodesource.com/node_12.x buster InRelease
            Paketlisten werden gelesen... Fertig
            
            ## Confirming "buster" is supported...
            
            + curl -sLf -o /dev/null 'https://deb.nodesource.com/node_14.x/dists/buster/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
            gpg: WARNUNG: Unsicheres Besitzverhältnis des Home-Verzeichnis `/home/pi/.gnupg'
            
            ## Creating apt sources list file for the NodeSource Node.js 14.x repo...
            
            + echo 'deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_14.x buster main' > /etc/apt/sources.list.d/nodesource.list
            + echo 'deb-src [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_14.x buster main' >> /etc/apt/sources.list.d/nodesource.list
            
            ## Running `apt-get update` for you...
            
            + apt-get update
            OK:1 http://phoscon.de/apt/deconz buster InRelease
            OK:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
            OK:3 http://archive.raspberrypi.org/debian buster InRelease
            Holen:4 https://deb.nodesource.com/node_14.x buster InRelease [4.584 B]
            Holen:5 https://deb.nodesource.com/node_14.x buster/main armhf Packages [779 B]
            Es wurden 5.363 B in 2 s geholt (2.577 B/s).
            Paketlisten werden gelesen... Fertig
            
            ## Run `sudo apt-get install -y nodejs` to install Node.js 14.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
            
            
            pi@raspberrypi4-iob:/opt/iobroker $ sudo apt-get install -y nodejs
            Paketlisten werden gelesen... Fertig
            Abhängigkeitsbaum wird aufgebaut.
            Statusinformationen werden eingelesen.... Fertig
            Die folgenden Pakete wurden automatisch installiert und werden nicht mehr benötigt:
              rpi-eeprom-images wiringpi
            Verwenden Sie »sudo apt autoremove«, um sie zu entfernen.
            Die folgenden Pakete werden aktualisiert (Upgrade):
              nodejs
            1 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
            Es müssen 23,0 MB an Archiven heruntergeladen werden.
            Nach dieser Operation werden 29,7 MB Plattenplatz zusätzlich benutzt.
            Holen:1 https://deb.nodesource.com/node_14.x buster/main armhf nodejs armhf 14.18.2-deb-1nodesource1 [23,0 MB]
            Es wurden 23,0 MB in 2 s geholt (13,5 MB/s).
            apt-listchanges: Changelogs werden gelesen...
            (Lese Datenbank ... 59804 Dateien und Verzeichnisse sind derzeit installiert.)
            Vorbereitung zum Entpacken von .../nodejs_14.18.2-deb-1nodesource1_armhf.deb ...
            Entpacken von nodejs (14.18.2-deb-1nodesource1) über (12.22.8-deb-1nodesource1) ...
            nodejs (14.18.2-deb-1nodesource1) wird eingerichtet ...
            Trigger für man-db (2.8.5-2) werden verarbeitet ...
            pi@raspberrypi4-iob:/opt/iobroker $ node -v
            v12.18.4
            

            Danke, VG Markus

            Thomas Braun 1 Reply Last reply Reply Quote 0
            • 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
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            702
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

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