Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Einsteigerfragen
    4. Installation
    5. Troubleshooting NodeJS update

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Troubleshooting NodeJS update

    This topic has been deleted. Only users with topic management privileges can see it.
    • JoJo58
      JoJo58 @Thomas Braun last edited by

      @thomas-braun sagte in Troubleshooting NodeJS update:

      Mit vorhandenen Backups 'ne Sache von 'ner Stunde.

      Okay, ich hab 1,5 Stunden gebraucht (bin auch schon etwas älter 😊 ) und hatte ein paar kleinere Problemchen, aber jetztz läuft wieder alles. Mir fehlen jetzt zwar Aufzeichnungen von Datenpunkten, aber damit muss ich halt leben. Zumindest nodejs ist jetzt sauber drauf:

      smarthome@raspi8gb:~ $ sudo ln -s /usr/bin/node /usr/bin/nodejs &> /dev/null
      smarthome@raspi8gb:~ $ type -P nodejs node npm npx && nodejs -v && node -v && npm -v && npx -v
      /usr/bin/nodejs
      /usr/bin/node
      /usr/bin/npm
      /usr/bin/npx
      v18.15.0
      v18.15.0
      9.5.0
      9.5.0
      smarthome@raspi8gb:~ $
      
      

      Vielen Dank für deine Hilfe, ich hab viel gelernt und werde auch das mit der ungeraden Version nie mehr vergessen. 👍

      1 Reply Last reply Reply Quote 1
      • Knallochse
        Knallochse last edited by

        Eine Installation des Adapters vofo-speedtest unter Node Version 18.15.0 ist leider nicht mehr möglich.

        $ iobroker add vofo-speedtest auto --host buanet-iobroker1 --debug
        
        NPM version: 9.5.0
        
        Installing iobroker.vofo-speedtest@0.0.13... (System call)
        
        npm ERR! code 1
        
        npm ERR! gyp info spawn args '-f',npm ERR! gyp info spawn args 'make',npm ERR! gyp info spawn args '-I',npm ERR! gyp info spawn args '/opt/iobroker/node_modules/node-libcurl/build/config.gypi',npm ERR! gyp info spawn args '-I',npm ERR! gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',npm ERR! gyp info spawn args '-I',npm ERR! gyp info spawn args '/opt/iobroker/.cache/node-gyp/18.15.0/include/node/common.gypi',npm ERR! gyp info spawn args '-Dlibrary=shared_library',npm ERR! gyp info spawn args '-Dvisibility=default',npm ERR! gyp info spawn args '-Dnode_root_dir=/opt/iobroker/.cache/node-gyp/18.15.0',npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',npm ERR! gyp info spawn args '-Dnode_lib_file=/opt/iobroker/.cache/node-gyp/18.15.0/<(target_arch)/node.lib',npm ERR! gyp info spawn args '-Dmodule_root_dir=/opt/iobroker/node_modules/node-libcurl',npm ERR! gyp info spawn args '-Dnode_engine=v8',npm ERR! gyp info spawn args '--depth=.',npm ERR! gyp info spawn args '--no-parallel',npm ERR! gyp info spawn args '--generator-output',npm ERR! gyp info spawn args 'build',npm ERR! gyp info spawn args '-Goutput_dir=.'npm ERR! gyp info spawn args ]npm ERR! Could not run curl-config, please make sure libcurl dev package is installed.
        
        npm ERR! A complete log of this run can be found in:npm ERR! /opt/iobroker/.npm/_logs/2023-04-04T09_56_47_982Z-debug-0.log
        
        host.buanet-iobroker1 Cannot install iobroker.vofo-speedtest@0.0.13: 1
        
        ERROR: Process exited with code 25
        

        Github Issues dazu

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

          @knallochse sagte in Troubleshooting NodeJS update:

          Could not run curl-config, please make sure libcurl dev package is installed.

          Schau mal ob das installiert ist. Wobei mich die Abhängigkeit von libcurl-dev irritiert...
          Das dürfte eher kein Problem von/mit nodejs sein.

          sudo apt update
          apt policy libcurl4-gnutls-dev libcurl4-nss-dev libcurl4-openssl-dev
          

          sagt?

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

            @thomas-braun sagte in Troubleshooting NodeJS update:

            apt policy libcurl4-gnutls-dev libcurl4-nss-dev libcurl4-openssl-dev

            Danke für deine Antwort.
            Hier die Ausgabe :

            root@buanet-iobroker1:/opt/iobroker# sudo apt update
            sudo: unable to resolve host buanet-iobroker1: Name or service not known
            Get:1 http://deb.debian.org/debian bullseye InRelease [116 kB]
            Get:2 http://deb.debian.org/debian-security bullseye-security InRelease [48,4 kB] 
            Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44,1 kB] 
            Get:4 https://deb.nodesource.com/node_18.x bullseye InRelease [4.586 B] 
            Get:5 http://deb.debian.org/debian bullseye/main amd64 Packages [8.183 kB]
            Get:6 https://deb.nodesource.com/node_18.x bullseye/main amd64 Packages [776 B]
            Get:7 http://deb.debian.org/debian-security bullseye-security/main amd64 Packages [236 kB]
            Get:8 http://deb.debian.org/debian bullseye-updates/main amd64 Packages [14,6 kB]
            Fetched 8.648 kB in 5s (1.761 kB/s)
            Reading package lists... Done
            Building dependency tree... Done
            Reading state information... Done
            All packages are up to date.
            root@buanet-iobroker1:/opt/iobroker# apt policy libcurl4-gnutls-dev libcurl4-nss-dev libcurl4-openssl-dev
            libcurl4-gnutls-dev:
              Installed: (none)
              Candidate: 7.74.0-1.3+deb11u7
              Version table:
                 7.74.0-1.3+deb11u7 500
                    500 http://deb.debian.org/debian-security bullseye-security/main amd64 Packages
                 7.74.0-1.3+deb11u3 500
                    500 http://deb.debian.org/debian bullseye/main amd64 Packages
            libcurl4-nss-dev:
              Installed: (none)
              Candidate: 7.74.0-1.3+deb11u7
              Version table:
                 7.74.0-1.3+deb11u7 500
                    500 http://deb.debian.org/debian-security bullseye-security/main amd64 Packages
                 7.74.0-1.3+deb11u3 500
                    500 http://deb.debian.org/debian bullseye/main amd64 Packages
            libcurl4-openssl-dev:
              Installed: (none)
              Candidate: 7.74.0-1.3+deb11u7
              Version table:
                 7.74.0-1.3+deb11u7 500
                    500 http://deb.debian.org/debian-security bullseye-security/main amd64 Packages
                 7.74.0-1.3+deb11u3 500
                    500 http://deb.debian.org/debian bullseye/main amd64 Packages
            root@buanet-iobroker1:/opt/iobroker# 
            
            Thomas Braun 1 Reply Last reply Reply Quote 0
            • Thomas Braun
              Thomas Braun Most Active @Knallochse last edited by

              @knallochse

              Siehste. Nix installiert, dann kann auch curl-config nicht aufgerufen werden.
              Ist kein nodejs-Thema, eines der Pakete muss installiert werden.

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

                @thomas-braun Dankeschön 👍

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

                  @thomas-braun sagte in Troubleshooting NodeJS update:

                  Wobei mich die Abhängigkeit von libcurl-dev irritiert...

                  Wenn man drüber nachdenkt...
                  gyp als 'Kompiler' braucht natürlich entsprechende dev-Pakete. Also alles i. O.

                  1 Reply Last reply Reply Quote 0
                  • T
                    tschfs last edited by

                    Hallo zusammen,

                    ich bin nach Jahrzehnten wieder neu gestartet mit Linux und will den ioBroker auf Debian zum Laufen bekommen. Meine Linux Kenntnisse stammen daher noch aus der Informatiker Ausbildung und geben nicht mehr viel her. Leider fehlt dem iobroker die richtige npm und nodejs Version. Ich bin entsprechend der Anleitung hier im Forum vorgegangen, es wird aber immer die Version v12.22.12 installiert.

                    apt policy libcurl4-gnutls-dev libcurl4-nss-dev libcurl4-openssl-dev nodejs npm

                    libcurl4-gnutls-dev:
                      Installiert:           (keine)
                      Installationskandidat: 7.74.0-1.3+deb11u7
                      Versionstabelle:
                         7.74.0-1.3+deb11u7 500
                            500 http://security.debian.org/debian-security bullseye-security/main i386 Packages
                         7.74.0-1.3+deb11u3 500
                            500 http://deb.debian.org/debian bullseye/main i386 Packages
                         7.64.0-4+deb10u2 500
                            500 http://http.debian.net/debian buster/main i386 Packages
                    libcurl4-nss-dev:
                      Installiert:           (keine)
                      Installationskandidat: 7.74.0-1.3+deb11u7
                      Versionstabelle:
                         7.74.0-1.3+deb11u7 500
                            500 http://security.debian.org/debian-security bullseye-security/main i386 Packages
                         7.74.0-1.3+deb11u3 500
                            500 http://deb.debian.org/debian bullseye/main i386 Packages
                         7.64.0-4+deb10u2 500
                            500 http://http.debian.net/debian buster/main i386 Packages
                    libcurl4-openssl-dev:
                      Installiert:           (keine)
                      Installationskandidat: 7.74.0-1.3+deb11u7
                      Versionstabelle:
                         7.74.0-1.3+deb11u7 500
                            500 http://security.debian.org/debian-security bullseye-security/main i386 Packages
                         7.74.0-1.3+deb11u3 500
                            500 http://deb.debian.org/debian bullseye/main i386 Packages
                         7.64.0-4+deb10u2 500
                            500 http://http.debian.net/debian buster/main i386 Packages
                    nodejs:
                      Installiert:           12.22.12~dfsg-1~deb11u3
                      Installationskandidat: 12.22.12~dfsg-1~deb11u3
                      Versionstabelle:
                     *** 12.22.12~dfsg-1~deb11u3 500
                            500 http://security.debian.org/debian-security bullseye-security/main i386 Packages
                            100 /var/lib/dpkg/status
                         12.22.5~dfsg-2~11u1 500
                            500 http://deb.debian.org/debian bullseye/main i386 Packages
                         10.24.0~dfsg-1~deb10u1 500
                            500 http://http.debian.net/debian buster/main i386 Packages
                    npm:
                      Installiert:           (keine)
                      Installationskandidat: 7.5.2+ds-2
                      Versionstabelle:
                         7.5.2+ds-2 500
                            500 http://deb.debian.org/debian bullseye/main i386 Packages
                         5.8.0+ds6-4+deb10u2 500
                            500 http://http.debian.net/debian buster/main i386 Packages
                    
                    

                    Würde mich freuen, wenn mir jemand weiterhelfen kann.
                    Ich habe auch bereits versucht nodejs über nvm zu installieren, nvm findet aber kein passendes linux-x86 Paket, daher schlägt der Download fehl. Nachdem ich schon 2 Tage alles versuche habe ich heute das OS nochmal komplett frisch installiert und aktuell nach der Debian Installation nichts weiter verändert außer nodejs v18 zu installieren versucht.

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

                      @tschfs sagte in Troubleshooting NodeJS update:

                      Ich habe auch bereits versucht nodejs über nvm zu installieren

                      Lass die Finger von nvm.
                      In meiner Signatur findest du eine Anleitung, wie man nodejs ordentlich über den bordeigenen Paketmanager installiert.

                      Für i386 wirst du auch nichts aktuelles finden, weil dafür keiner mehr baut.
                      Wo haste denn den i386 ausgegraben? Sind die nicht vom letzten Kaiser verboten worden? Installier da ein 64bit-Debian.

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

                        @thomas-braun danke, habe ich nach der Neuinstallation des OS genau nach deiner Anleitung versucht. Es kommt immer wieder die v12.x raus.

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

                          @tschfs

                          Liegt an i386. Siehe edit oben.

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

                            @thomas-braun habs zu spät gesehen, habs aber schon befürchtet. Hatte mir spontan was von Heise gezogen und eine Boot-Stick gebaut. Dann werd ichs wohl nochmal von vorne angehen. Melde mich dann wieder 😉

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

                              @tschfs

                              Und du fährst da einen kruden Mix aus buster und bullseye Repos. Das bricht dir auch beide Beine.

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

                                @tschfs sagte in Troubleshooting NodeJS update:

                                Hatte mir spontan was von Heise gezogen und eine Boot-Stick gebaut.

                                Wat treibt ihr eigentlich immer für schräges Zeuch... seufz.

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

                                  @thomas-braun So läuft jetzt mit einem 64bit Debian. Danke nochmal für den Tipp!

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

                                    @tschfs

                                    Und was haste da jetzt am Start?

                                    Zeig mal die Zusammenfassung von

                                    iob diag
                                    
                                    1 Reply Last reply Reply Quote 0
                                    • astuermer
                                      astuermer last edited by astuermer

                                      Hab hier ioBroker auf Bullseye installiert und bekomme beim Eintragen der Node 18.x Quellen untenstehende Fehlermeldung. Auch /node_16.x/ nimmt er nicht (um zumindest 16.20.0 zu installieren) - selbe Fehlermeldung. Ich kann nur die vorhin installierte 16.19.1 wieder installieren.

                                      Ne Idee?

                                      ## Confirming "" is supported...
                                      
                                      + curl -sLf -o /dev/null 'https://deb.nodesource.com/node_18.x/dists//Release'
                                      
                                      ## Your distribution, identified as "", is not currently supported, please contact NodeSource at https://github.com/nodesource/distributions/issues if you think this is incorrect or would like your distribution to be considered for support
                                      
                                      Thomas Braun 1 Reply Last reply Reply Quote 0
                                      • Thomas Braun
                                        Thomas Braun Most Active @astuermer last edited by

                                        @astuermer

                                        Was haste denn da laufen?

                                        sudo apt update
                                        

                                        schaut wie aus?

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

                                          @thomas-braun said in Troubleshooting NodeJS update:

                                          sudo apt update

                                          OK:1 http://phoscon.de/apt/deconz buster InRelease
                                          OK:2 http://raspbian.raspberrypi.org/raspbian buster InRelease                 
                                          OK:3 https://downloads.plex.tv/repo/deb public InRelease                       
                                          OK:4 https://deb.nodesource.com/node_16.x buster InRelease                     
                                          OK:5 http://archive.raspberrypi.org/debian buster InRelease                    
                                          Paketlisten werden gelesen... Fertig       
                                          Abhängigkeitsbaum wird aufgebaut.       
                                          Statusinformationen werden eingelesen.... Fertig
                                          Alle Pakete sind aktuell.
                                          
                                          Thomas Braun 1 Reply Last reply Reply Quote 0
                                          • Thomas Braun
                                            Thomas Braun Most Active @astuermer last edited by

                                            @astuermer sagte in Troubleshooting NodeJS update:

                                            Alle Pakete sind aktuell.

                                            Aber dein Betriebssystem nicht. Bzw. die Einträge in den list-Dateien nicht.
                                            Wie willst du denn damit bullseye installiert haben?

                                            iob diag
                                            

                                            sagt?

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            503
                                            Online

                                            31.7k
                                            Users

                                            79.7k
                                            Topics

                                            1.3m
                                            Posts

                                            nodejs 18 nodejs update
                                            60
                                            504
                                            84226
                                            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