Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Diskussion zum HowTo nodejs-Installation und upgrade

    NEWS

    • Monatsrückblick - April 2025

    • Minor js-controller 7.0.7 Update in latest repo

    • Save The Date: ioBroker@Smart Living Forum Solingen, 14.06.

    Diskussion zum HowTo nodejs-Installation und upgrade

    This topic has been deleted. Only users with topic management privileges can see it.
    • Thomas Braun
      Thomas Braun Most Active @M-A-X last edited by Thomas Braun

      @m-a-x sagte in Diskussion zum HowTo nodejs-Installation und upgrade:

      habe da überlesen dass nur die Version so geändert wird.

      Und zwar nur einmalig auf die aktuelle Major-Version. Im Weiteren läuft es dann wie üblich.

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

        @thomas-braun wann wird eigentlich die recommended version vom node-js auf Version 20 angehoben?

        Bei mir kommt auch die Meldung, dass Version 18 noch die aktuelle sei.

        Danke.

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

          @siggi0904 sagte in Diskussion zum HowTo nodejs-Installation und upgrade:

          wann wird eigentlich die recommended version vom node-js auf Version 20 angehoben?

          Seit ein paar Tagen ist das im js-controller6 drin.

          
          Nothing to do - Your installation is using the correct paths.
          
          You are running nodejs v22.4.1. Do you want to install recommended version 20.15.1? 
          
          Press <y> to continue or any other key to quit
          
          
          
          S 1 Reply Last reply Reply Quote 0
          • S
            Siggi0904 @Thomas Braun last edited by

            @thomas-braun habe gerade iob nodejs-update gemacht und da wurde noch Version 18 gemeldet.

            Homoran Thomas Braun 2 Replies Last reply Reply Quote 0
            • Homoran
              Homoran Global Moderator Administrators @Siggi0904 last edited by

              @siggi0904 sagte in Diskussion zum HowTo nodejs-Installation und upgrade:

              @thomas-braun habe gerade iob nodejs-update gemacht und da wurde noch Version 18 gemeldet.

              und?
              Hast du

              @thomas-braun sagte in Diskussion zum HowTo nodejs-Installation und upgrade:

              js-controller6

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

                @siggi0904 Und welchen js-controller fährst du? In der stabilen Version 5.0.19 ist das noch nicht drin.

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

                  @thomas-braun jo, alles stable. Also mach ich es per apt. Kein Thema.

                  Homoran Thomas Braun 2 Replies Last reply Reply Quote 0
                  • Homoran
                    Homoran Global Moderator Administrators @Siggi0904 last edited by

                    @siggi0904 sagte in Diskussion zum HowTo nodejs-Installation und upgrade:

                    @thomas-braun jo, alles stable. Also mach ich es per apt. Kein Thema.

                    ...oder per iob nodejs-update 20

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

                      @siggi0904 sagte in Diskussion zum HowTo nodejs-Installation und upgrade:

                      Also mach ich es per apt.

                      Du sollst das sowieso primär per apt machen.
                      iob nodejs-update ist nur zum Wechsel der Major-Version gedacht und um verfummelte sonstige Installationen wieder gerade zu biegen.

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

                        @thomas-braun aber da muss man immer dran denken den iob zu stoppen.
                        Das macht das skript fein selbst. 🙂

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

                          @siggi0904 dann nimm doch das Skript

                          S 1 Reply Last reply Reply Quote 0
                          • S
                            skorpil @Homoran last edited by

                            @homoran welches?

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

                              @skorpil iob nodejs-update 20

                              S 1 Reply Last reply Reply Quote 0
                              • S
                                skorpil @Homoran last edited by

                                @homoran Danke. Ich verstehe.

                                1 Reply Last reply Reply Quote 0
                                • P
                                  powerich last edited by

                                  Hallo Zusammen
                                  auch ich habe versucht eine nodejs update durchzuführen. Leider ohne Erfolg.

                                  Folgendes Problem habe ich nach dem Update mit nodejs:

                                  node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node)
                                  

                                  Ich habe alles versucht was ich im Forum gefundeun habe.

                                  • Löschen der bisherigen Version
                                  • Löschen der Verzeichnisse und Dateiverknüpfungen
                                  • Manuelle Installation nach "neuer Anleitung"
                                  • Automatische installation

                                  Hier schon mal der "iob diag"

                                  ======================= SUMMARY =======================
                                                          v.2024-05-22
                                  
                                  
                                     Static hostname: rpiiobroker
                                           Icon name: computer
                                    Operating System: Raspbian GNU/Linux 10 (buster)
                                              Kernel: Linux 5.10.103-v7+
                                        Architecture: arm
                                  
                                  Installation:           native
                                  Kernel:                 armv7l
                                  Userland:               32 bit
                                  Timezone:               Europe/Berlin (CEST, +0200)
                                  User-ID:                1000
                                  Display-Server:         false
                                  Boot Target:            graphical.target
                                  
                                  Pending OS-Updates:     0
                                  node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node)
                                  Pending iob updates:    0
                                  
                                  Nodejs-Installation:
                                  nodejs: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by nodejs)
                                  /usr/bin/nodejs
                                  nodejs: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by nodejs)
                                  node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node)
                                  /usr/bin/node
                                  node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node)
                                  node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node)
                                  /usr/bin/npm
                                  node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node)
                                  node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node)
                                  /usr/bin/npx
                                  node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node)
                                  node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node)
                                  /usr/bin/corepack
                                  node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node)
                                  
                                  Recommended versions are nodejs  and npm
                                  Your nodejs installation is correct
                                  
                                  MEMORY:
                                                total        used        free      shared  buff/cache   available
                                  Mem:           923M         50M        113M         16M        758M        792M
                                  Swap:           99M        2.0M         97M
                                  Total:         1.0G         53M        211M
                                  
                                  Active iob-Instances:   0
                                  node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node)
                                  
                                  node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node)
                                  ioBroker Core:          js-controller
                                  node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node)
                                                          admin
                                  
                                  node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node)
                                  ioBroker Status:
                                  
                                  Status admin and web instance:
                                  
                                  Objects:                0
                                  States:                 0
                                  
                                  Size of iob-Database:
                                  
                                  1.3M    /opt/iobroker/iobroker-data/objects.json.bak
                                  1.3M    /opt/iobroker/iobroker-data/objects.json
                                  148K    /opt/iobroker/iobroker-data/states.json.bak
                                  148K    /opt/iobroker/iobroker-data/states.json
                                  
                                  
                                  
                                  =================== END OF SUMMARY ====================
                                  

                                  Vielen Dand für eure neuen Ideen zur Problemlösung.

                                  Grüße
                                  Ichda

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

                                    @powerich sagte in Diskussion zum HowTo nodejs-Installation und upgrade:

                                    Operating System: Raspbian GNU/Linux 10 (buster)

                                    Zu alt, installier da NEU Raspberry OS 12 'Bookworm', bevorzugt in den 64Bit-Variante 'Lite' - Ohne Desktop.

                                    https://forum.iobroker.net/topic/51869/installation-auf-raspi-einfacher-geht-s-nicht

                                    1 Reply Last reply Reply Quote 0
                                    • S
                                      skorpil last edited by skorpil

                                      mein system zeigt bei der Anwendung von

                                      iob nodejs-update
                                      

                                      folgendes an:

                                      Recommended nodejs-version is: 18.20.4
                                      Checking your installation now. Please be patient!
                                      
                                      Your current setup is:
                                      /usr/bin/nodejs         v18.20.4
                                      /usr/bin/node           v18.20.4
                                      /usr/bin/npm            10.7.0
                                      /usr/bin/npx            10.7.0
                                      /usr/bin/corepack       0.28.0
                                      We found these nodejs versions available for installation:
                                      
                                      nodejs:
                                        Installed: 18.20.4-1nodesource1
                                        Candidate: 18.20.4-1nodesource1
                                      
                                      

                                      mit anderen Worten: die 20 wird NICHT gefunden.

                                      Die Info Box sagt:

                                      Plattform: linux
                                      Betriebssystem: linux
                                      Architektur: x64
                                      CPUs: 2
                                      Geschwindigkeit: 1996 MHz
                                      Modell: Intel(R) Celeron(R) J4125 CPU @ 2.00GHz
                                      RAM: 3.8 GB
                                      System-Betriebszeit: 00:33:29
                                      Node.js: v18.20.4
                                      time: 1722086029102
                                      timeOffset: -120
                                      NPM: 10.7.0
                                      Adapter-Anzahl: 539
                                      Datenträgergröße: 18.6 GB
                                      Freier Festplattenspeicher: 9.1 GB
                                      Aktive Instanzen: 5
                                      Pfad: /opt/iobroker/
                                      Betriebszeit: 00:00:22
                                      aktiv:
                                      
                                      

                                      meldet also auch, daß kein update notwendig ist.

                                      Muß nicht eigentlich irgendwo auf die Notwendigkeit auf die empfohlene 20er Version zu updaten hingewiesen werden? Oder kommt das später? Oder sollte ich überhaupt updaten? Und dann mit:

                                      iob nodejs-update 20
                                      

                                      Obwohl ich ja mit der 20 es schon mal versucht habe und dann Probleme mit httpGet hatte, wollte ich es noch einmal versuchen.

                                      Danke für Hilfe.

                                      Summery aus diag im spoiler


                                      ======================= SUMMARY =======================
                                      v.2024-05-22

                                      Static hostname: LinuxNeu
                                      Icon name: computer-vm
                                      Chassis: vm 🖴
                                      Virtualization: oracle
                                      Operating System: Debian GNU/Linux 12 (bookworm)
                                      Kernel: Linux 6.1.0-23-amd64
                                      Architecture: x86-64
                                      Hardware Vendor: innotek GmbH
                                      Hardware Model: VirtualBox
                                      Firmware Version: VirtualBox

                                      Installation: oracle
                                      Kernel: x86_64
                                      Userland: 64 bit
                                      Timezone: Europe/Berlin (CEST, +0200)
                                      User-ID: 1000
                                      Display-Server: false
                                      Boot Target: graphical.target

                                      Pending OS-Updates: 0
                                      Pending iob updates: 0

                                      Nodejs-Installation:
                                      /usr/bin/nodejs v18.20.4
                                      /usr/bin/node v18.20.4
                                      /usr/bin/npm 10.7.0
                                      /usr/bin/npx 10.7.0
                                      /usr/bin/corepack 0.28.0

                                      Recommended versions are nodejs 18.20.4 and npm 10.7.0
                                      Your nodejs installation is correct

                                      MEMORY:
                                      total used free shared buff/cache available
                                      Mem: 4.1G 2.1G 1.6G 2.5M 715M 2.0G
                                      Swap: 1.0G 0B 1.0G
                                      Total: 5.1G 2.1G 2.6G

                                      Active iob-Instances: 16
                                      Active repo(s): stable

                                      ioBroker Core: js-controller 5.0.19
                                      admin 6.17.14

                                      ioBroker Status: iobroker is running on this host.

                                      Objects type: jsonl
                                      States type: jsonl

                                      Status admin and web instance:

                                      • system.adapter.admin.0 : admin : LinuxNeu - enabled, port: 8081, bind: 0.0.0.0, run as: admin

                                      Objects: 19441
                                      States: 16301

                                      Size of iob-Database:

                                      24M /opt/iobroker/iobroker-data/objects.jsonl
                                      11M /opt/iobroker/iobroker-data/objects.json.migrated
                                      11M /opt/iobroker/iobroker-data/objects.json.bak.migrated
                                      0 /opt/iobroker/iobroker-data/objects.json.broken
                                      6.7M /opt/iobroker/iobroker-data/states.jsonl
                                      1.6M /opt/iobroker/iobroker-data/states.json.migrated
                                      1.6M /opt/iobroker/iobroker-data/states.json.bak.migrated
                                      0 /opt/iobroker/iobroker-data/states.json.broken

                                      =================== END OF SUMMARY ====================

                                      
                                      === Mark text until here for copying ===
                                      [/s]
                                      Thomas Braun 1 Reply Last reply Reply Quote 0
                                      • Thomas Braun
                                        Thomas Braun Most Active @skorpil last edited by

                                        @skorpil sagte in Diskussion zum HowTo nodejs-Installation und upgrade:

                                        mit anderen Worten: die 20 wird NICHT gefunden.

                                        Das hängt mit dem admin zusammen. Der hat die v18 fix drin. Nichtsdestotrotz ist nodejs@20 die vorgesehene Version.
                                        Mit admin@7 funktioniert es dann auch:

                                        Nothing to do - Your installation is using the correct paths.
                                        
                                        You are running nodejs v22.5.1. Do you want to install recommended version 20.16.0? 
                                        
                                        Press <y> to continue or any other key to quit
                                        
                                        
                                        S 1 Reply Last reply Reply Quote 0
                                        • S
                                          skorpil @Thomas Braun last edited by

                                          @thomas-braun Dankeschön. Und wie komme ich an den Admin 7? Wenn ich dich richtig verstehe, dann erst mit

                                          iob nodejs-update 20
                                          
                                          

                                          updaten und dann später den Admin7, wenn er in den Adaptern als updatable angezeigt wird, updaten?

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

                                            @skorpil sagte in Diskussion zum HowTo nodejs-Installation und upgrade:

                                            Und wie komme ich an den Admin 7?

                                            Der kommt irgendwann als stabile Version bei der üblichen Systempflege mit. Musste jetzt gar nix machen.
                                            Bring nodejs auf Version 20 und gut ist...

                                            iob nodejs-update 20
                                            
                                            S 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

                                            957
                                            Online

                                            31.6k
                                            Users

                                            79.4k
                                            Topics

                                            1.3m
                                            Posts

                                            nodejs
                                            91
                                            844
                                            162751
                                            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