Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. gyp Error bei Adapter-Installationen

    NEWS

    • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?

    • Monatsrückblick – September 2025

    • Neues Video "KI im Smart Home" - ioBroker plus n8n

    gyp Error bei Adapter-Installationen

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

      @thomas-braun release upgrade mache ich, aber nicht sofort. Rest schaue ich mir auch an. Aber läuft ja so... RAM noch nie ausgereizt, Platz auf / habe ich im im Blick, und der Zigbee Stick läuft seit Jahren an dem USB Port und wird nicht umgesteckt. Also das dürfte es doch weit überwiegend bis alles nicht sein warum das gyp muckt... oder wo ist da der Zusammenhang?

      apt policy bluetooth bluez libbluetooth-dev libudev-dev....ist ein Intel NUC, wüsste gar nicht was ich da mit Bluetooth will/mache!?

      bluetooth:
        Installed: (none)
        Candidate: 5.64-0ubuntu1.4
        Version table:
           5.64-0ubuntu1.4 500
              500 http://de.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages
              500 http://de.archive.ubuntu.com/ubuntu jammy-security/universe amd64 Packages
           5.64-0ubuntu1 500
              500 http://de.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
      bluez:
        Installed: (none)
        Candidate: 5.64-0ubuntu1.4
        Version table:
           5.64-0ubuntu1.4 500
              500 http://de.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
              500 http://de.archive.ubuntu.com/ubuntu jammy-security/main amd64 Packages
           5.64-0ubuntu1 500
              500 http://de.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
      libbluetooth-dev:
        Installed: (none)
        Candidate: 5.64-0ubuntu1.4
        Version table:
           5.64-0ubuntu1.4 500
              500 http://de.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
              500 http://de.archive.ubuntu.com/ubuntu jammy-security/main amd64 Packages
           5.64-0ubuntu1 500
              500 http://de.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
      libudev-dev:
        Installed: 249.11-0ubuntu3.16
        Candidate: 249.11-0ubuntu3.17
        Version table:
           249.11-0ubuntu3.17 500 (phased 0%)
              500 http://de.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
       *** 249.11-0ubuntu3.16 500
              500 http://de.archive.ubuntu.com/ubuntu jammy-security/main amd64 Packages
              100 /var/lib/dpkg/status
           249.11-0ubuntu3 500
              500 http://de.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
      
      Thomas Braun 2 Replies Last reply Reply Quote 0
      • Thomas Braun
        Thomas Braun Most Active @fiddle last edited by

        @fiddle sagte in gyp Error bei Adapter-Installationen:

        oder wo ist da der Zusammenhang?

        Der Zusammenhang ist: Das sind alles Dinge, die du für ein stabiles System angehen musst.
        Das fällt dir früher oder später in der ein oder anderen Form auf die Füße.

        wüsste gar nicht was ich da mit Bluetooth will/mache!?

        Du nicht, aber ein Adapter will da @stoprocent/noble@1.19.1 installieren. Die genannten Pakete sind aber Voraussetzung für ein erfolgreiches build.

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

          @fiddle

          Hab es jetzt bei mir nachstellen können. Die Meldungen dürften vom radar2-Adapter stammen. Der baut wohl mit aktuellem nodejs nicht mehr (bzw. ein paar der Dependencies). Schmeiß den raus, wenn du den eh nicht verwendest.

          Build hier bei mir:

          echad@chet:/opt/iobroker $ iob add radar2 --debug
          NPM version: 11.6.2
          Installing iobroker.radar2@2.4.0... (System call)
          npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
          npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
          npm warn deprecated npmlog@4.1.2: This package is no longer supported.
          npm warn deprecated gauge@2.7.4: This package is no longer supported.
          
          > raw-socket@1.8.1 install
          > node-gyp rebuild
          
          gyp info it worked if it ends with ok
          gyp info using node-gyp@7.1.2
          gyp info using node@25.1.0 | linux | arm64
          (node:96855) [DEP0060] DeprecationWarning: The `util._extend` API is deprecated. Please use Object.assign() instead.
          (Use `node --trace-deprecation ...` to show where the warning was created)
          gyp info find Python using Python version 3.13.5 found at "/usr/bin/python3"
          gyp http GET https://nodejs.org/download/release/v25.1.0/node-v25.1.0-headers.tar.gz
          gyp http 200 https://nodejs.org/download/release/v25.1.0/node-v25.1.0-headers.tar.gz
          gyp http GET https://nodejs.org/download/release/v25.1.0/SHASUMS256.txt
          gyp http 200 https://nodejs.org/download/release/v25.1.0/SHASUMS256.txt
          gyp ERR! Completion callback never invoked! 
          gyp ERR! System Linux 6.12.47+rpt-rpi-v8
          gyp ERR! command "/usr/bin/node" "/opt/iobroker/node_modules/.bin/node-gyp" "rebuild"
          gyp ERR! cwd /opt/iobroker/node_modules/raw-socket
          gyp ERR! node -v v25.1.0
          gyp ERR! node-gyp -v v7.1.2
          gyp ERR! Node-gyp failed to build your package.
          gyp ERR! Try to update npm and/or node-gyp and if it does not help file an issue with the package author.
          
          > usocket@0.3.0 install
          > node-gyp rebuild
          
          gyp info it worked if it ends with ok
          gyp info using node-gyp@7.1.2
          gyp info using node@25.1.0 | linux | arm64
          (node:96869) [DEP0060] DeprecationWarning: The `util._extend` API is deprecated. Please use Object.assign() instead.
          (Use `node --trace-deprecation ...` to show where the warning was created)
          gyp info find Python using Python version 3.13.5 found at "/usr/bin/python3"
          gyp ERR! Completion callback never invoked! 
          gyp ERR! System Linux 6.12.47+rpt-rpi-v8
          gyp ERR! command "/usr/bin/node" "/opt/iobroker/node_modules/.bin/node-gyp" "rebuild"
          gyp ERR! cwd /opt/iobroker/node_modules/usocket
          gyp ERR! node -v v25.1.0
          gyp ERR! node-gyp -v v7.1.2
          gyp ERR! Node-gyp failed to build your package.
          gyp ERR! Try to update npm and/or node-gyp and if it does not help file an issue with the package author.
          
          added 14 packages, and removed 1 package in 23s
          
          250 packages are looking for funding
            run `npm fund` for details
          host.chet install adapter radar2
          upload [8] radar2.admin /opt/iobroker/node_modules/iobroker.radar2/admin/index.html index.html text/html
          upload [7] radar2.admin /opt/iobroker/node_modules/iobroker.radar2/admin/index_m.html index_m.html text/html
          upload [6] radar2.admin /opt/iobroker/node_modules/iobroker.radar2/admin/network_test.js network_test.js application/javascript
          upload [5] radar2.admin /opt/iobroker/node_modules/iobroker.radar2/admin/node_ble_test.js node_ble_test.js application/javascript
          upload [4] radar2.admin /opt/iobroker/node_modules/iobroker.radar2/admin/radar2.png radar2.png image/png
          upload [3] radar2.admin /opt/iobroker/node_modules/iobroker.radar2/admin/tools.js tools.js application/javascript
          upload [2] radar2.admin /opt/iobroker/node_modules/iobroker.radar2/admin/vendors.json vendors.json application/json
          upload [1] radar2.admin /opt/iobroker/node_modules/iobroker.radar2/admin/words.js words.js application/javascript
          upload [0] radar2.admin /opt/iobroker/node_modules/iobroker.radar2/admin/words.json words.json application/json
          host.chet object system.adapter.radar2 created/updated
          Updating objects from io-package.json for adapter "radar2" with version "2.4.0"
          host.chet create instance radar2
          host.chet object system.adapter.radar2.0.alive created
          host.chet object system.adapter.radar2.0.connected created
          host.chet object system.adapter.radar2.0.compactMode created
          host.chet object system.adapter.radar2.0.cpu created
          host.chet object system.adapter.radar2.0.cputime created
          host.chet object system.adapter.radar2.0.memHeapUsed created
          host.chet object system.adapter.radar2.0.memHeapTotal created
          host.chet object system.adapter.radar2.0.memRss created
          host.chet object system.adapter.radar2.0.uptime created
          host.chet object system.adapter.radar2.0.inputCount created
          host.chet object system.adapter.radar2.0.outputCount created
          host.chet object system.adapter.radar2.0.eventLoopLag created
          host.chet object system.adapter.radar2.0.sigKill created
          host.chet object system.adapter.radar2.0.logLevel created
          host.chet object radar2.0.info created
          host.chet object radar2.0.info.connection created
          host.chet Set default value of radar2.0.info.connection: false
          host.chet object system.adapter.radar2.0 created
          echad@chet:/opt/iobroker $ npm ls @stoprocent/noble
          iobroker.inst@3.0.0 /opt/iobroker
          ├─┬ iobroker.ble@0.14.1
          │ └── @stoprocent/noble@1.19.1
          └─┬ iobroker.radar2@2.4.0
            └── @stoprocent/noble@1.19.1 deduped
          
          echad@chet:/opt/iobroker $
          
          crunchip 1 Reply Last reply Reply Quote 0
          • crunchip
            crunchip Forum Testing Most Active @Thomas Braun last edited by

            @thomas-braun die Meldungen hab ich auch und schon ewig, trotzdem funktioniert der Adapter und auch iobroker

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

              @crunchip

              Hier wird der auch installiert und auf den ersten Blick funktioniert der auch.
              Trotz der build errors.

              Ich wollte auch primär schauen, ob der radar2 auch
              @stoprocent/noble reinholt. Tut er:

              iobroker.inst@3.0.0 /opt/iobroker
              ├─┬ iobroker.ble@0.14.1
              │ └── @stoprocent/noble@1.19.1
              └─┬ iobroker.radar2@2.4.0
                └── @stoprocent/noble@1.19.1 deduped
              

              Aber damit der sauber baut müssen die obigen Pakete für bluetooth installiert sein.

              1 Reply Last reply Reply Quote 0
              • F
                fiddle last edited by

                Danke für eure Befassung.
                Habe nun alle meine Todos abgearbeitet. Hat natürlich ein-zwei Dinge "zerlegt", sodass ich erstmal ein paar Umwege in völlig unbekannte Gefilde "moderner" python-Pfad-Irrgärten und wieder heraus finden muste... NETARUS, ich sag's ja....

                Verwirrend (für Leute wie mich, oder auch nur mich): Wenn man Adapter XY installiert, warum wird dann (a) Radar2 neu gebaut (wo doch schon ewig installiert, seinerzeit vermutlich ohne diese Fehler), und (b) werden die Fehler die DADURCH entstehen im Log des "neuen" Adapater-Installations-Vorgangs ausgegeben, und das (c) ohne jeden (für Laien...) erkennbaren Hinweis, dass das eben von einem ganz anderen Adapter (Namens...Radar2) stammt.

                Hatte Radar2 mal rausgeworfen. Nachdem ich jetzt auch die genannten Bluetooth-Pakete installiert habe, habe ich dann Radar2 nochmal neu installiert. Scheint aber noch nicht sauber zu sein.

                $ iobroker add radar2 auto --host iob --debug
                
                NPM version: 10.9.4Installing iobroker.radar2@2.4.0... (System call)
                
                npm warn deprecated npmlog@4.1.2: This package is no longer supported.
                
                npm warn deprecated are-we-there-yet@1.1.7: This package is no longer supported.
                
                npm warn deprecated gauge@2.7.4: This package is no longer supported.
                
                > @stoprocent/noble@1.19.1 install> node-gyp-build
                
                gyp info using node@22.21.1 | linux | x64
                
                (node:3655) [DEP0060] DeprecationWarning: The `util._extend` API is deprecated. Please use Object.assign() instead.(Use `node --trace-deprecation ...` to show where the warning was created)
                
                gyp info find Python using Python version 3.12.3 found at "/usr/bin/python3"
                
                gyp http GET https://nodejs.org/download/release/v22.21.1/node-v22.21.1-headers.tar.gz
                
                gyp http 200 https://nodejs.org/download/release/v22.21.1/node-v22.21.1-headers.tar.gz
                
                gyp http GET https://nodejs.org/download/release/v22.21.1/SHASUMS256.txt
                
                gyp http 200 https://nodejs.org/download/release/v22.21.1/SHASUMS256.txt
                
                gyp ERR! System Linux 6.8.0-87-genericgyp ERR! command "/usr/bin/node" "/opt/iobroker/node_modules/node-gyp/bin/node-gyp.js" "rebuild"gyp ERR! cwd /opt/iobroker/node_modules/@stoprocent/noblegyp ERR! node -v v22.21.1gyp ERR! node-gyp -v v7.1.2gyp ERR! Node-gyp failed to build your package.gyp ERR! Try to update npm and/or node-gyp and if it does not help file an issue with the package author.
                
                gyp info using node-gyp@7.1.2gyp info using node@22.21.1 | linux | x64
                
                (node:3670) [DEP0060] DeprecationWarning: The `util._extend` API is deprecated. Please use Object.assign() instead.(Use `node --trace-deprecation ...` to show where the warning was created)
                
                gyp info find Python using Python version 3.12.3 found at "/usr/bin/python3"
                
                gyp ERR! UNCAUGHT EXCEPTION
                
                gyp ERR! stack TypeError: Cannot assign to read only property 'cflags' of object '#<Object>'gyp ERR! stack at createConfigFile (/opt/iobroker/node_modules/node-gyp/lib/configure.js:117:21)gyp ERR! stack at /opt/iobroker/node_modules/node-gyp/lib/configure.js:84:9gyp ERR! stack at FSReqCallback.oncomplete (node:fs:187:23)
                
                gyp ERR! System Linux 6.8.0-87-genericgyp ERR! command "/usr/bin/node" "/opt/iobroker/node_modules/.bin/node-gyp" "rebuild"gyp ERR! cwd /opt/iobroker/node_modules/raw-socketgyp ERR! node -v v22.21.1gyp ERR! node-gyp -v v7.1.2gyp ERR! Node-gyp failed to build your package.gyp ERR! Try to update npm and/or node-gyp and if it does not help file an issue with the package author.
                
                > usb@2.16.0 install> node-gyp-build
                
                (node:3702) [DEP0060] DeprecationWarning: The `util._extend` API is deprecated. Please use Object.assign() instead.(Use `node --trace-deprecation ...` to show where the warning was created)
                
                gyp ERR! UNCAUGHT EXCEPTION gyp ERR! stack TypeError: Cannot assign to read only property 'cflags' of object '#<Object>'gyp ERR! stack at createConfigFile (/opt/iobroker/node_modules/node-gyp/lib/configure.js:117:21)gyp ERR! stack at /opt/iobroker/node_modules/node-gyp/lib/configure.js:84:9gyp ERR! stack at FSReqCallback.oncomplete (node:fs:187:23)gyp ERR! System Linux 6.8.0-87-genericgyp ERR! command "/usr/bin/node" "/opt/iobroker/node_modules/.bin/node-gyp" "rebuild"gyp ERR! cwd /opt/iobroker/node_modules/usocketgyp ERR! node -v v22.21.1gyp ERR! node-gyp -v v7.1.2
                
                gyp ERR! Node-gyp failed to build your package.gyp ERR! Try to update npm and/or node-gyp and if it does not help file an issue with the package author.
                
                added 42 packages in 16s
                
                185 packages are looking for funding run `npm fund` for details
                
                host.iob install adapter radar2
                
                upload [8] radar2.admin /opt/iobroker/node_modules/iobroker.radar2/admin/index.html index.html text/html
                
                upload [7] radar2.admin /opt/iobroker/node_modules/iobroker.radar2/admin/index_m.html index_m.html text/html
                
                upload [6] radar2.admin /opt/iobroker/node_modules/iobroker.radar2/admin/network_test.js network_test.js application/javascript
                
                upload [5] radar2.admin /opt/iobroker/node_modules/iobroker.radar2/admin/node_ble_test.js node_ble_test.js application/javascript
                
                upload [4] radar2.admin /opt/iobroker/node_modules/iobroker.radar2/admin/radar2.png radar2.png image/png
                
                upload [2] radar2.admin /opt/iobroker/node_modules/iobroker.radar2/admin/vendors.json vendors.json application/json
                
                upload [1] radar2.admin /opt/iobroker/node_modules/iobroker.radar2/admin/words.js words.js application/javascript
                
                upload [0] radar2.admin /opt/iobroker/node_modules/iobroker.radar2/admin/words.json words.json application/json
                
                host.iob object system.adapter.radar2 created/updated
                
                host.iob create instance radar2
                
                host.iob object system.adapter.radar2.0.alive created
                
                host.iob object system.adapter.radar2.0.connected created
                
                host.iob object system.adapter.radar2.0.cpu created
                
                host.iob object system.adapter.radar2.0.outputCount created
                
                host.iob object radar2.0.info.connection created
                
                host.iob Set default value of radar2.0.info.connection: false
                
                host.iob object system.adapter.radar2.0 created
                
                Process exited with code 0
                
                Thomas Braun 1 Reply Last reply Reply Quote 0
                • Thomas Braun
                  Thomas Braun Most Active @fiddle last edited by

                  @fiddle sagte in gyp Error bei Adapter-Installationen:

                  Wenn man Adapter XY installiert, warum wird dann (a) Radar2 neu gebaut (wo doch schon ewig installiert, seinerzeit vermutlich ohne diese Fehler), und (b) werden die Fehler die DADURCH entstehen im Log des "neuen" Adapater-Installations-Vorgangs ausgegeben, und das (c) ohne jeden (für Laien...) erkennbaren Hinweis, dass das eben von einem ganz anderen Adapter (Namens...Radar2) stammt.

                  Weil gyp immer auch abgebrochene Kompilierversuche wieder aufnimmt.

                  radar2 sollte jetzt aber funktionierend installiert sein.

                  1 Reply Last reply Reply Quote 0
                  • OliverIO
                    OliverIO last edited by

                    @fiddle sagte in gyp Error bei Adapter-Installationen:

                    ohne jeden (für Laien...) erkennbaren Hinweis, dass das eben von einem ganz anderen Adapter (Namens...Radar2) stammt

                    das meiste der Ausgabe stammt direkt vom npm Befehl.
                    Da kann man nicht so viel daran machen.
                    Problem von node ist auch der hierarische Aufbau der Abhängigkeiten

                    • Adapter benötigt 5 weitere Pakete
                    • jedes dieser Pakete benötigt wieder weitere 5 Pakete
                    • jedes dieser Pakete benötigt wiederum jeweils 2 Pakete
                    • und eines davon bringt native Code in C mit und muss deshalb kompiliert werden.

                    Da ist es manchmal nicht so einfach das Problem tatsächlich zuzuordnen,
                    Wobei, glaube ich, das Hauptproblem des nicht aktuellen Betriebssystem war.
                    Sonst hätte das kompillieren auch geklappt.

                    F 1 Reply Last reply Reply Quote 0
                    • F
                      fiddle @OliverIO last edited by

                      @oliverio sagte in gyp Error bei Adapter-Installationen:

                      Wobei, glaube ich, das Hauptproblem des nicht aktuellen Betriebssystem war.

                      Aber das habe ich doch nun gestern alles behoben.
                      Und dennoch ist das Log der erneuten Radar2 Installation voll mit gyp ERR. Also was auch immer er da noch bauen will klappt doch offenbar noch nicht. Ich brauche zwar den radar2 nicht, mache das also nur als Test...aber die Fehler wäre ich schon gern wieder los. Sieht jedenfalls nicht besser aus als vor den Updates des OS.

                      Kann man das mit dem Abarbeiten ggf früherer teil-gescheiterter Installationen nicht unterbinden? Installiere nur den Adapter den der User will. Wenn bei anderen was war, dan ignoriere das. Wenn der User den "problematischen" Adapter fixen will, kümmere dich dann um die Fehler. Aber nicht bei jedem weiteren.

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

                        @fiddle

                        npm geht immer über den gesamten tree. Da kannste nix ausschließen, weil npm immer versucht das ganze konsistent zu halten. Wenn es dich stört, schmeiß den radar2 halt raus.
                        Die Installation läuft ja trotzdem durch:

                        Process exited with code 0
                        

                        Edit: Und warum läuft das (zumindest bei mir) durch?
                        Weil die beiden Module, die bei mir nicht gebaut werden können, nur eine SubDependency eines optionalen Moduls (hier: net-ping) sind:

                          "optionalDependencies": {
                            "@stoprocent/noble": "1.19.1",
                            "net-ping": "^1.2.4"
                        

                        Und net-ping scheint mir nicht mehr gepflegt zu werden:
                        https://github.com/nospaceships/node-net-ping/blob/master/README.md
                        Kann also gut sein, dass es mit aktuellen Setups nicht mehr baut.

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

                        Support us

                        ioBroker
                        Community Adapters
                        Donate

                        798
                        Online

                        32.3k
                        Users

                        81.2k
                        Topics

                        1.3m
                        Posts

                        4
                        15
                        148
                        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