Skip to content
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Logo
  1. ioBroker Community Home
  2. Deutsch
  3. Error/Bug
  4. npm error bei allen Adaptern

NEWS

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    8.1k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    13
    1
    1.8k

  • Neues Video "KI im Smart Home" - ioBroker plus n8n
    BluefoxB
    Bluefox
    15
    1
    2.1k

npm error bei allen Adaptern

Scheduled Pinned Locked Moved Solved Error/Bug
npm error
25 Posts 5 Posters 6.6k Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Andi888
    wrote on last edited by Negalein
    #1
    Systemdata
    Hardwaresystem: Pi3
    Arbeitsspeicher: 1GB
    Festplattenart: SD-Karte
    Betriebssystem: Mac
    Node-Version: 10.x.x
    Nodejs-Version: 10.x.x
    NPM-Version: 6.x.x
    Installationsart: Skript/Manuell
    Image genutzt: Nein
    Ort/Name der Imagedatei:

    Hallo zusammen,

    ich habe ein Problem mit den Updates und Installation der Adapter im iobroker.

    Und zwar kommt immer folgende Meldung bei der Installation oder update aller Adamptern und js-controller:

    $ ./iobroker add shelly  --host raspberrypi
    NPM version: 6.13.4
    npm install iobroker.shelly@3.1.6 --loglevel error --prefix "/opt/iobroker" (System call)
    npm
     ERR! code EINTEGRITYnpm ERR! errno EINTEGRITY
    npm ERR! Invalid response body while trying to fetch https://registry.npmjs.org/@iobroker%2fadapter-core: Integrity verification failed for sha512-fTYxE+ZTGF1LNiCnvcfa1uUN+iKvRYswLzEOHxi1pq/tuQRH9pq4i6haHZfMYthQp8zxUWXfql6gWkVFv2ySsw== (/home/iobroker/.npm/_cacache/content-v2/sha512/7d/36/3113e653185d4b3620a7bdc7dad6e50dfa22af458b302f310e1f18b5a6afedb90447f69ab88ba85a1d97cc62d850a7ccf15165dfaa5ea05a4545bf6c92b3)
    
    npm ERR! A complete log of this run can be found in:npm ERR!     /home/iobroker/.npm/_logs/2020-02-28T13_36_02_661Z-debug.log
    ERROR: host.raspberrypi Cannot install iobroker.shelly@3.1.6: 1
    ERROR: process exited with code 25
    

    Ich habe habe node, nodejs, npm, iobroker deinstalliert und wieder alles neu installiert, aber immer noch das gleiche Problem.
    Und jetzt weiß ich auch nicht mehr weiter.

    Im Voraus schon einmal vielen Dank für euere Hilfe.

    AlCalzoneA 1 Reply Last reply
    0
    • A Andi888

      @AlCalzone

      den hier:

      curl -sL http://iobroker.net/fix.sh | bash -
      

      Hab ich auch probiert und hat nichts geholfen.

      Dann werde ich wohl den kompletten pi neu aufsetzen müssen.

      AlCalzoneA Offline
      AlCalzoneA Offline
      AlCalzone
      Developer
      wrote on last edited by
      #6

      @Andi888 Stop, eine Idee hätte ich noch.
      Nachdem du den Fixer ausgeführt hast:

      sudo -H -u iobroker npm cache verify
      

      und/oder

      sudo -H -u iobroker npm cache clean --force
      

      Warum `sudo` böse ist: https://forum.iobroker.net/post/17109

      1 Reply Last reply
      0
      • A Andi888
        Systemdata
        Hardwaresystem: Pi3
        Arbeitsspeicher: 1GB
        Festplattenart: SD-Karte
        Betriebssystem: Mac
        Node-Version: 10.x.x
        Nodejs-Version: 10.x.x
        NPM-Version: 6.x.x
        Installationsart: Skript/Manuell
        Image genutzt: Nein
        Ort/Name der Imagedatei:

        Hallo zusammen,

        ich habe ein Problem mit den Updates und Installation der Adapter im iobroker.

        Und zwar kommt immer folgende Meldung bei der Installation oder update aller Adamptern und js-controller:

        $ ./iobroker add shelly  --host raspberrypi
        NPM version: 6.13.4
        npm install iobroker.shelly@3.1.6 --loglevel error --prefix "/opt/iobroker" (System call)
        npm
         ERR! code EINTEGRITYnpm ERR! errno EINTEGRITY
        npm ERR! Invalid response body while trying to fetch https://registry.npmjs.org/@iobroker%2fadapter-core: Integrity verification failed for sha512-fTYxE+ZTGF1LNiCnvcfa1uUN+iKvRYswLzEOHxi1pq/tuQRH9pq4i6haHZfMYthQp8zxUWXfql6gWkVFv2ySsw== (/home/iobroker/.npm/_cacache/content-v2/sha512/7d/36/3113e653185d4b3620a7bdc7dad6e50dfa22af458b302f310e1f18b5a6afedb90447f69ab88ba85a1d97cc62d850a7ccf15165dfaa5ea05a4545bf6c92b3)
        
        npm ERR! A complete log of this run can be found in:npm ERR!     /home/iobroker/.npm/_logs/2020-02-28T13_36_02_661Z-debug.log
        ERROR: host.raspberrypi Cannot install iobroker.shelly@3.1.6: 1
        ERROR: process exited with code 25
        

        Ich habe habe node, nodejs, npm, iobroker deinstalliert und wieder alles neu installiert, aber immer noch das gleiche Problem.
        Und jetzt weiß ich auch nicht mehr weiter.

        Im Voraus schon einmal vielen Dank für euere Hilfe.

        AlCalzoneA Offline
        AlCalzoneA Offline
        AlCalzone
        Developer
        wrote on last edited by
        #2

        @Andi888 Ich kenne das ( EINTEGRITY ) nur, wenn es Probleme mit der Verbindung zur npm-Registry gibt. Check mal die Internetverbindung vom Pi.

        Warum `sudo` böse ist: https://forum.iobroker.net/post/17109

        1 Reply Last reply
        0
        • A Offline
          A Offline
          Andi888
          wrote on last edited by Andi888
          #3

          @AlCalzone said in npm error bei allen Adaptern:

          er Verbindung zur npm-Registry gibt. Check mal die Internetverbindung vom Pi.

          Die Internetverbindung steht und der Pi kann drauf zugreifen.
          Wenn ich im Pfad /home/pi meine Dateien anzeigen lassen will, mit ls -l bekomme insgesamt 0 angezeigt. Ist das normal?

          npm test ergab folgendes:

          npm ERR! code ENOENT
          npm ERR! syscall open
          npm ERR! path /home/pi/package.json
          npm ERR! errno -2
          npm ERR! enoent ENOENT: no such file or directory, open '/home/pi/package.json'
          npm ERR! enoent This is related to npm not being able to find a file.
          npm ERR! enoent 
          
          npm ERR! A complete log of this run can be found in:
          npm ERR!     /home/pi/.npm/_logs/2020-02-29T10_01_43_504Z-debug.log
          
          AlCalzoneA 1 Reply Last reply
          0
          • A Andi888

            @AlCalzone said in npm error bei allen Adaptern:

            er Verbindung zur npm-Registry gibt. Check mal die Internetverbindung vom Pi.

            Die Internetverbindung steht und der Pi kann drauf zugreifen.
            Wenn ich im Pfad /home/pi meine Dateien anzeigen lassen will, mit ls -l bekomme insgesamt 0 angezeigt. Ist das normal?

            npm test ergab folgendes:

            npm ERR! code ENOENT
            npm ERR! syscall open
            npm ERR! path /home/pi/package.json
            npm ERR! errno -2
            npm ERR! enoent ENOENT: no such file or directory, open '/home/pi/package.json'
            npm ERR! enoent This is related to npm not being able to find a file.
            npm ERR! enoent 
            
            npm ERR! A complete log of this run can be found in:
            npm ERR!     /home/pi/.npm/_logs/2020-02-29T10_01_43_504Z-debug.log
            
            AlCalzoneA Offline
            AlCalzoneA Offline
            AlCalzone
            Developer
            wrote on last edited by
            #4

            @Andi888 sagte in npm error bei allen Adaptern:

            /home/pi meine Dateien anzeigen lassen will, mit ls -l bekomme insgesamt 0 angezeigt.

            Hmm, mal den Fixer ausgeführt?

            Warum `sudo` böse ist: https://forum.iobroker.net/post/17109

            A 1 Reply Last reply
            0
            • AlCalzoneA AlCalzone

              @Andi888 sagte in npm error bei allen Adaptern:

              /home/pi meine Dateien anzeigen lassen will, mit ls -l bekomme insgesamt 0 angezeigt.

              Hmm, mal den Fixer ausgeführt?

              A Offline
              A Offline
              Andi888
              wrote on last edited by
              #5

              @AlCalzone

              den hier:

              curl -sL http://iobroker.net/fix.sh | bash -
              

              Hab ich auch probiert und hat nichts geholfen.

              Dann werde ich wohl den kompletten pi neu aufsetzen müssen.

              AlCalzoneA 1 Reply Last reply
              0
              • A Andi888

                @AlCalzone

                den hier:

                curl -sL http://iobroker.net/fix.sh | bash -
                

                Hab ich auch probiert und hat nichts geholfen.

                Dann werde ich wohl den kompletten pi neu aufsetzen müssen.

                AlCalzoneA Offline
                AlCalzoneA Offline
                AlCalzone
                Developer
                wrote on last edited by
                #6

                @Andi888 Stop, eine Idee hätte ich noch.
                Nachdem du den Fixer ausgeführt hast:

                sudo -H -u iobroker npm cache verify
                

                und/oder

                sudo -H -u iobroker npm cache clean --force
                

                Warum `sudo` böse ist: https://forum.iobroker.net/post/17109

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  Andi888
                  wrote on last edited by
                  #7

                  Super, es hat funktioniert.
                  Vielen Dank!

                  1 Reply Last reply
                  0
                  • B Offline
                    B Offline
                    Bielefelder81
                    wrote on last edited by Bielefelder81
                    #8

                    Nabend.

                    Ich habe auch andauernd einen NPM Error, egal bei welchem Adapter. Mir wurden 9 neue Updates angezeigt und ich habe bereits die Befehle hier aus dem Thread ausprobiert, nur leider ohne Erfolg.

                    Das kommt zB

                    npm
                     ERR! code ELIFECYCLEnpm
                     ERR! errno
                     1npm
                     ERR! canvas@2.6.1 install: `node-pre-gyp install --fallback-to-build`npm ERR! Exit status 1npm ERR! npm ERR! Failed at the canvas@2.6.1 install script.npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
                    

                    Oder beim Updaten vom admin.0 kommt das...

                    $ ./iobroker upgrade telegram
                    Update telegram from @1.5.5 to @1.5.6
                    host.pi-iobroker Adapter "system.adapter.telegram.0" is stopped.
                    NPM version: 6.14.4
                    npm install iobroker.telegram@1.5.6 --loglevel error --prefix "/opt/iobroker" (System call)
                    /opt/iobroker/node_modules/semver/semver.js:1191  }   ^SyntaxError: Invalid or unexpected token    at Module._compile (internal/modules/cjs/loader.js:723:23)    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)    at Module.load (internal/modules/cjs/loader.js:653:32)    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)    at Function.Module._load (internal/modules/cjs/loader.js:585:3)    at Module.require (internal/modules/cjs/loader.js:692:17)    at require (internal/modules/cjs/helpers.js:25:18)    at Object.<anonymous> (/opt/iobroker/node_modules/canvas/node_modules/node-pre-gyp/lib/util/versioning.js:6:14)    at Module._compile (internal/modules/cjs/loader.js:778:30)    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
                    npm
                     ERR! code ELIFECYCLE
                    npm
                     ERR! errno 1npm ERR! canvas@2.6.1 install: `node-pre-gyp install --fallback-to-build`npm ERR! Exit status 1npm ERR! npm ERR! Failed at the canvas@2.6.1 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/2020-04-26T00_21_45_383Z-debug.log
                    upload [5] telegram.admin /opt/iobroker/node_modules/iobroker.telegram/admin/words.js words.js application/javascript
                    upload [4] telegram.admin /opt/iobroker/node_modules/iobroker.telegram/admin/telegram.png telegram.png image/png
                    upload [3] telegram.admin /opt/iobroker/node_modules/iobroker.telegram/admin/index_m.html index_m.html text/html
                    upload [2] telegram.admin /opt/iobroker/node_modules/iobroker.telegram/admin/index.html index.html text/html
                    upload [1] telegram.admin /opt/iobroker/node_modules/iobroker.telegram/admin/custom_m.html custom_m.html text/html
                    upload [0] telegram.admin /opt/iobroker/node_modules/iobroker.telegram/admin/blockly.js blockly.js application/javascript
                    Adapter "telegram" updated
                    host.pi-iobroker Adapter "system.adapter.telegram.0" is started
                    process exited with code 0 
                    

                    Immer etwas mit ELifeCycle. Verändert habe ich schon lang nichts mehr am iobroker.

                    AlCalzoneA 1 Reply Last reply
                    0
                    • B Bielefelder81

                      Nabend.

                      Ich habe auch andauernd einen NPM Error, egal bei welchem Adapter. Mir wurden 9 neue Updates angezeigt und ich habe bereits die Befehle hier aus dem Thread ausprobiert, nur leider ohne Erfolg.

                      Das kommt zB

                      npm
                       ERR! code ELIFECYCLEnpm
                       ERR! errno
                       1npm
                       ERR! canvas@2.6.1 install: `node-pre-gyp install --fallback-to-build`npm ERR! Exit status 1npm ERR! npm ERR! Failed at the canvas@2.6.1 install script.npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
                      

                      Oder beim Updaten vom admin.0 kommt das...

                      $ ./iobroker upgrade telegram
                      Update telegram from @1.5.5 to @1.5.6
                      host.pi-iobroker Adapter "system.adapter.telegram.0" is stopped.
                      NPM version: 6.14.4
                      npm install iobroker.telegram@1.5.6 --loglevel error --prefix "/opt/iobroker" (System call)
                      /opt/iobroker/node_modules/semver/semver.js:1191  }   ^SyntaxError: Invalid or unexpected token    at Module._compile (internal/modules/cjs/loader.js:723:23)    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)    at Module.load (internal/modules/cjs/loader.js:653:32)    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)    at Function.Module._load (internal/modules/cjs/loader.js:585:3)    at Module.require (internal/modules/cjs/loader.js:692:17)    at require (internal/modules/cjs/helpers.js:25:18)    at Object.<anonymous> (/opt/iobroker/node_modules/canvas/node_modules/node-pre-gyp/lib/util/versioning.js:6:14)    at Module._compile (internal/modules/cjs/loader.js:778:30)    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
                      npm
                       ERR! code ELIFECYCLE
                      npm
                       ERR! errno 1npm ERR! canvas@2.6.1 install: `node-pre-gyp install --fallback-to-build`npm ERR! Exit status 1npm ERR! npm ERR! Failed at the canvas@2.6.1 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/2020-04-26T00_21_45_383Z-debug.log
                      upload [5] telegram.admin /opt/iobroker/node_modules/iobroker.telegram/admin/words.js words.js application/javascript
                      upload [4] telegram.admin /opt/iobroker/node_modules/iobroker.telegram/admin/telegram.png telegram.png image/png
                      upload [3] telegram.admin /opt/iobroker/node_modules/iobroker.telegram/admin/index_m.html index_m.html text/html
                      upload [2] telegram.admin /opt/iobroker/node_modules/iobroker.telegram/admin/index.html index.html text/html
                      upload [1] telegram.admin /opt/iobroker/node_modules/iobroker.telegram/admin/custom_m.html custom_m.html text/html
                      upload [0] telegram.admin /opt/iobroker/node_modules/iobroker.telegram/admin/blockly.js blockly.js application/javascript
                      Adapter "telegram" updated
                      host.pi-iobroker Adapter "system.adapter.telegram.0" is started
                      process exited with code 0 
                      

                      Immer etwas mit ELifeCycle. Verändert habe ich schon lang nichts mehr am iobroker.

                      AlCalzoneA Offline
                      AlCalzoneA Offline
                      AlCalzone
                      Developer
                      wrote on last edited by
                      #9

                      @Bielefelder81 sagte in npm error bei allen Adaptern:

                      ^SyntaxError: Invalid or unexpected token

                      Das hat in der Regel nur 2 Gründe:

                      1. zu alte Node-Version (< 8 )
                      2. oder SD-Karte macht gerade die Grätsche

                      Warum `sudo` böse ist: https://forum.iobroker.net/post/17109

                      B 1 Reply Last reply
                      0
                      • AlCalzoneA AlCalzone

                        @Bielefelder81 sagte in npm error bei allen Adaptern:

                        ^SyntaxError: Invalid or unexpected token

                        Das hat in der Regel nur 2 Gründe:

                        1. zu alte Node-Version (< 8 )
                        2. oder SD-Karte macht gerade die Grätsche
                        B Offline
                        B Offline
                        Bielefelder81
                        wrote on last edited by
                        #10

                        @AlCalzone

                        Hi,

                        1. Node = 10.20.1
                        2. Hoffentlich nicht
                        haselchenH 1 Reply Last reply
                        0
                        • B Bielefelder81

                          @AlCalzone

                          Hi,

                          1. Node = 10.20.1
                          2. Hoffentlich nicht
                          haselchenH Offline
                          haselchenH Offline
                          haselchen
                          Most Active
                          wrote on last edited by haselchen
                          #11

                          @Bielefelder81

                          Ich geh immer nach Try and Error vor 😉
                          Hier würde ich nach dem Canvas Fehler suchen.

                          npm i canvas

                          wäre mein nächster Schritt.
                          Wie gesagt immer alles auf eigene Gefahr und Backup machen ganz wichtig.

                          Vermutlich gibt es x Möglichkeiten deinen Fehler zu korrigieren.
                          Da ich nen Container im Docker habe kann ich halt viel rumprobieren.

                          Synology DS218+ & 2 x Fujitsu Esprimo (VM/Container) + FritzBox7590 + 2 AVM 3000 Repeater & Homematic & HUE & Osram & Xiaomi, NPM 10.9.4, Nodejs 22.21.0 ,JS Controller 7.0.7 ,Admin 7.7.19

                          AlCalzoneA 1 Reply Last reply
                          0
                          • haselchenH haselchen

                            @Bielefelder81

                            Ich geh immer nach Try and Error vor 😉
                            Hier würde ich nach dem Canvas Fehler suchen.

                            npm i canvas

                            wäre mein nächster Schritt.
                            Wie gesagt immer alles auf eigene Gefahr und Backup machen ganz wichtig.

                            Vermutlich gibt es x Möglichkeiten deinen Fehler zu korrigieren.
                            Da ich nen Container im Docker habe kann ich halt viel rumprobieren.

                            AlCalzoneA Offline
                            AlCalzoneA Offline
                            AlCalzone
                            Developer
                            wrote on last edited by
                            #12

                            @haselchen canvas ist nicht das Problem, wenn du genau hinschaust. Der Fehler ist
                            } ^SyntaxError: Invalid or unexpected token
                            in der Datei /opt/iobroker/node_modules/semver/semver.js. Im Kommentarfeld sieht man auch, dass da ein unsichtbares Steuerzeichen (\u0002) ist, was meinen Verdacht einer kaputten SD-Karte weiter bestärkt.

                            Warum `sudo` böse ist: https://forum.iobroker.net/post/17109

                            haselchenH 1 Reply Last reply
                            0
                            • AlCalzoneA AlCalzone

                              @haselchen canvas ist nicht das Problem, wenn du genau hinschaust. Der Fehler ist
                              } ^SyntaxError: Invalid or unexpected token
                              in der Datei /opt/iobroker/node_modules/semver/semver.js. Im Kommentarfeld sieht man auch, dass da ein unsichtbares Steuerzeichen (\u0002) ist, was meinen Verdacht einer kaputten SD-Karte weiter bestärkt.

                              haselchenH Offline
                              haselchenH Offline
                              haselchen
                              Most Active
                              wrote on last edited by haselchen
                              #13

                              @AlCalzone

                              Da bist Du eher der Experte.
                              Ich hatte ähnliche Fehlermeldung mal mit dem Hinweis das die Datei schon existiert und man sie löschen soll und dann nochmal updaten.
                              Insgesamt sind die Fehlermeldungen bei Iobroker tatsächlich noch Neuland für den Großteil der User.
                              Schwierig vermutlich, aufgrund der Vielzahl der möglichen Meldungen, eine Doku zu erstellen mit Fehlerbehandlungen.

                              Synology DS218+ & 2 x Fujitsu Esprimo (VM/Container) + FritzBox7590 + 2 AVM 3000 Repeater & Homematic & HUE & Osram & Xiaomi, NPM 10.9.4, Nodejs 22.21.0 ,JS Controller 7.0.7 ,Admin 7.7.19

                              AlCalzoneA 1 Reply Last reply
                              0
                              • haselchenH haselchen

                                @AlCalzone

                                Da bist Du eher der Experte.
                                Ich hatte ähnliche Fehlermeldung mal mit dem Hinweis das die Datei schon existiert und man sie löschen soll und dann nochmal updaten.
                                Insgesamt sind die Fehlermeldungen bei Iobroker tatsächlich noch Neuland für den Großteil der User.
                                Schwierig vermutlich, aufgrund der Vielzahl der möglichen Meldungen, eine Doku zu erstellen mit Fehlerbehandlungen.

                                AlCalzoneA Offline
                                AlCalzoneA Offline
                                AlCalzone
                                Developer
                                wrote on last edited by
                                #14

                                @haselchen Die Formatierung macht es nicht gerade einfacher, das zu erkennen.

                                @Bielefelder81 Du kannst versuchen, die Datei zu reparieren:

                                cd /opt/iobroker
                                npm i semver
                                

                                und dann die Adapter zu installieren. Aber aus meiner Erfahrung deutet so ein Fehler nur an, dass bald mehr kaputt geht. Wenn du nicht sofort die SD tauschen möchstest, empfehle ich dir daher dringend ein Backup.

                                Warum `sudo` böse ist: https://forum.iobroker.net/post/17109

                                B 1 Reply Last reply
                                0
                                • AlCalzoneA AlCalzone

                                  @haselchen Die Formatierung macht es nicht gerade einfacher, das zu erkennen.

                                  @Bielefelder81 Du kannst versuchen, die Datei zu reparieren:

                                  cd /opt/iobroker
                                  npm i semver
                                  

                                  und dann die Adapter zu installieren. Aber aus meiner Erfahrung deutet so ein Fehler nur an, dass bald mehr kaputt geht. Wenn du nicht sofort die SD tauschen möchstest, empfehle ich dir daher dringend ein Backup.

                                  B Offline
                                  B Offline
                                  Bielefelder81
                                  wrote on last edited by
                                  #15

                                  @AlCalzone

                                  Das mit dem semver führte zu sehr vielen roten NPM Error 🙂

                                  
                                  > canvas@2.6.1 install /opt/iobroker/node_modules/canvas
                                  > node-pre-gyp install --fallback-to-build
                                  
                                  node-pre-gyp WARN Using request for node-pre-gyp https download
                                  node-pre-gyp WARN Tried to download(404): https://github.com/node-gfx/node-canvas-prebuilt/releases/download/v2.6.1/canvas-v2.6.1-node-v64-linux-glibc-arm.tar.gz
                                  node-pre-gyp WARN Pre-built binaries not found for canvas@2.6.1 and node@10.20.1 (node-v64 ABI, glibc) (falling back to source compile with node-gyp)
                                  Package pixman-1 was not found in the pkg-config search path.
                                  Perhaps you should add the directory containing `pixman-1.pc'
                                  to the PKG_CONFIG_PATH environment variable
                                  No package 'pixman-1' found
                                  gyp: Call to 'pkg-config pixman-1 --libs' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
                                  gyp ERR! configure error
                                  gyp ERR! stack Error: `gyp` failed with exit code: 1
                                  gyp ERR! stack     at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)
                                  gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
                                  gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
                                  gyp ERR! System Linux 4.19.97-v7+
                                  gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/opt/iobroker/node_modules/canvas/build/Release/canvas.node" "--module_name=canvas" "--module_path=/opt/iobroker/node_modules/canvas/build/Release" "--napi_version=6" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v64"
                                  gyp ERR! cwd /opt/iobroker/node_modules/canvas
                                  gyp ERR! node -v v10.20.1
                                  gyp ERR! node-gyp -v v5.1.0
                                  gyp ERR! not ok
                                  node-pre-gyp ERR! build error
                                  node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/opt/iobroker/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/opt/iobroker/node_modules/canvas/build/Release --napi_version=6 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v64' (1)
                                  node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/opt/iobroker/node_modules/canvas/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
                                  node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
                                  node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:982:16)
                                  node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
                                  node-pre-gyp ERR! System Linux 4.19.97-v7+
                                  node-pre-gyp ERR! command "/usr/bin/node" "/opt/iobroker/node_modules/canvas/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
                                  node-pre-gyp ERR! cwd /opt/iobroker/node_modules/canvas
                                  node-pre-gyp ERR! node -v v10.20.1
                                  node-pre-gyp ERR! node-pre-gyp -v v0.11.0
                                  node-pre-gyp ERR! not ok
                                  Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/opt/iobroker/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/opt/iobroker/node_modules/canvas/build/Release --napi_version=6 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v64' (1)
                                  npm WARN ajv-keywords@2.1.1 requires a peer of ajv@^5.0.0 but none is installed. You must install peer dependencies yourself.
                                  npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.12 (node_modules/zigbee-herdsman/node_modules/fsevents):
                                  npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.12: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
                                  
                                  npm ERR! code ELIFECYCLE
                                  npm ERR! errno 1
                                  npm ERR! canvas@2.6.1 install: `node-pre-gyp install --fallback-to-build`
                                  npm ERR! Exit status 1
                                  npm ERR!
                                  npm ERR! Failed at the canvas@2.6.1 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/2020-04-26T12_49_24_986Z-debug.log
                                  
                                  AlCalzoneA 1 Reply Last reply
                                  0
                                  • B Bielefelder81

                                    @AlCalzone

                                    Das mit dem semver führte zu sehr vielen roten NPM Error 🙂

                                    
                                    > canvas@2.6.1 install /opt/iobroker/node_modules/canvas
                                    > node-pre-gyp install --fallback-to-build
                                    
                                    node-pre-gyp WARN Using request for node-pre-gyp https download
                                    node-pre-gyp WARN Tried to download(404): https://github.com/node-gfx/node-canvas-prebuilt/releases/download/v2.6.1/canvas-v2.6.1-node-v64-linux-glibc-arm.tar.gz
                                    node-pre-gyp WARN Pre-built binaries not found for canvas@2.6.1 and node@10.20.1 (node-v64 ABI, glibc) (falling back to source compile with node-gyp)
                                    Package pixman-1 was not found in the pkg-config search path.
                                    Perhaps you should add the directory containing `pixman-1.pc'
                                    to the PKG_CONFIG_PATH environment variable
                                    No package 'pixman-1' found
                                    gyp: Call to 'pkg-config pixman-1 --libs' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
                                    gyp ERR! configure error
                                    gyp ERR! stack Error: `gyp` failed with exit code: 1
                                    gyp ERR! stack     at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)
                                    gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
                                    gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
                                    gyp ERR! System Linux 4.19.97-v7+
                                    gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/opt/iobroker/node_modules/canvas/build/Release/canvas.node" "--module_name=canvas" "--module_path=/opt/iobroker/node_modules/canvas/build/Release" "--napi_version=6" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v64"
                                    gyp ERR! cwd /opt/iobroker/node_modules/canvas
                                    gyp ERR! node -v v10.20.1
                                    gyp ERR! node-gyp -v v5.1.0
                                    gyp ERR! not ok
                                    node-pre-gyp ERR! build error
                                    node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/opt/iobroker/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/opt/iobroker/node_modules/canvas/build/Release --napi_version=6 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v64' (1)
                                    node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/opt/iobroker/node_modules/canvas/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
                                    node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
                                    node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:982:16)
                                    node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
                                    node-pre-gyp ERR! System Linux 4.19.97-v7+
                                    node-pre-gyp ERR! command "/usr/bin/node" "/opt/iobroker/node_modules/canvas/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
                                    node-pre-gyp ERR! cwd /opt/iobroker/node_modules/canvas
                                    node-pre-gyp ERR! node -v v10.20.1
                                    node-pre-gyp ERR! node-pre-gyp -v v0.11.0
                                    node-pre-gyp ERR! not ok
                                    Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/opt/iobroker/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/opt/iobroker/node_modules/canvas/build/Release --napi_version=6 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v64' (1)
                                    npm WARN ajv-keywords@2.1.1 requires a peer of ajv@^5.0.0 but none is installed. You must install peer dependencies yourself.
                                    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.12 (node_modules/zigbee-herdsman/node_modules/fsevents):
                                    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.12: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
                                    
                                    npm ERR! code ELIFECYCLE
                                    npm ERR! errno 1
                                    npm ERR! canvas@2.6.1 install: `node-pre-gyp install --fallback-to-build`
                                    npm ERR! Exit status 1
                                    npm ERR!
                                    npm ERR! Failed at the canvas@2.6.1 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/2020-04-26T12_49_24_986Z-debug.log
                                    
                                    AlCalzoneA Offline
                                    AlCalzoneA Offline
                                    AlCalzone
                                    Developer
                                    wrote on last edited by
                                    #16

                                    @Bielefelder81 Die ganzen canvas-Errors sehen erst mal furchteinflößend aus, das ist aber nur eine optionale Abhängigkeit, die auf manchen Systemen nicht installierbar ist. Wenn es sonst keine Fehler gab, müsste semver eigentlich wieder vollständig drauf sein - also probier mal die Adapter-Installation.

                                    Warum `sudo` böse ist: https://forum.iobroker.net/post/17109

                                    B 1 Reply Last reply
                                    0
                                    • AlCalzoneA AlCalzone

                                      @Bielefelder81 Die ganzen canvas-Errors sehen erst mal furchteinflößend aus, das ist aber nur eine optionale Abhängigkeit, die auf manchen Systemen nicht installierbar ist. Wenn es sonst keine Fehler gab, müsste semver eigentlich wieder vollständig drauf sein - also probier mal die Adapter-Installation.

                                      B Offline
                                      B Offline
                                      Bielefelder81
                                      wrote on last edited by
                                      #17

                                      @AlCalzone
                                      Na schauen wir mal... Ich habe jetzt mal den iot Adapter versucht zu updaten und es kam folgende Meldung.

                                      $ ./iobroker upgrade iot
                                      Update iot from @1.4.6 to @1.4.10
                                      host.pi-iobroker Adapter "system.adapter.iot.0" is stopped.
                                      NPM version: 6.14.4
                                      npm install iobroker.iot@1.4.10 --loglevel error --prefix "/opt/iobroker" (System call)
                                      Package pixman-1 was not found in the pkg-config search path.Perhaps you should add the directory containing `pixman-1.pc'to the PKG_CONFIG_PATH environment variableNo package 'pixman-1' found
                                      gyp: Call to 'pkg-config pixman-1 --libs' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
                                      gyp
                                       
                                      ERR!
                                       configure error
                                       gyp ERR! stack Error: `gyp` failed with exit code: 1gyp ERR! stack     at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)gyp ERR! stack     at ChildProcess.emit (events.js:198:13)gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
                                      gyp ERR! System Linux 4.19.97-v7+gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/opt/iobroker/node_modules/canvas/build/Release/canvas.node" "--module_name=canvas" "--module_path=/opt/iobroker/node_modules/canvas/build/Release" "--napi_version=6" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v64"gyp ERR! cwd
                                       /opt/iobroker/node_modules/canvasgyp ERR! node -v v10.20.1gyp ERR! node-gyp -v v5.1.0gyp ERR! not ok 
                                      node-pre-gyp
                                       ERR! build error 
                                      node-pre-gyp
                                       ERR!
                                       stack Error: Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/opt/iobroker/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/opt/iobroker/node_modules/canvas/build/Release --napi_version=6 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v64' (1)node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/opt/iobroker/node_modules/canvas/node_modules/node-pre-gyp/lib/util/compile.js:83:29)node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:198:13)node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:982:16)node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)node-pre-gyp ERR! System Linux 4.19.97-v7+node-pre-gyp ERR! command "/usr/bin/node" "/opt/iobroker/node_modules/canvas/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"node-pre-gyp ERR! cwd /opt/iobroker/node_modules/canvasnode-pre-gyp ERR! node -v v10.20.1node-pre-gyp ERR! node-pre-gyp -v v0.11.0node-pre-gyp ERR! not ok 
                                      npm
                                       ERR! code ELIFECYCLEnpm ERR! errno 1npm
                                       ERR! canvas@2.6.1 install: `node-pre-gyp install --fallback-to-build`npm ERR! Exit status 1npm ERR! npm ERR! Failed at the canvas@2.6.1 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/2020-04-26T16_36_44_161Z-debug.log
                                      upload [20] iot.admin /opt/iobroker/node_modules/iobroker.iot/admin/static/js/runtime-main.8b3eca34.js.map static/js/runtime-main.8b3eca34.js.map application/json
                                      upload [19] iot.admin /opt/iobroker/node_modules/iobroker.iot/admin/static/js/runtime-main.8b3eca34.js static/js/runtime-main.8b3eca34.js application/javascript
                                      upload [18] iot.admin /opt/iobroker/node_modules/iobroker.iot/admin/static/js/main.ac1c3d42.chunk.js.map static/js/main.ac1c3d42.chunk.js.map application/json
                                      upload [17] iot.admin /opt/iobroker/node_modules/iobroker.iot/admin/static/js/main.ac1c3d42.chunk.js static/js/main.ac1c3d42.chunk.js application/javascript
                                      upload [16] iot.admin /opt/iobroker/node_modules/iobroker.iot/admin/static/js/2.80efc66d.chunk.js.map static/js/2.80efc66d.chunk.js.map application/json
                                      upload [15] iot.admin /opt/iobroker/node_modules/iobroker.iot/admin/static/js/2.80efc66d.chunk.js.LICENSE.txt static/js/2.80efc66d.chunk.js.LICENSE.txt text/plain
                                      upload [14] iot.admin /opt/iobroker/node_modules/iobroker.iot/admin/static/js/2.80efc66d.chunk.js static/js/2.80efc66d.chunk.js application/javascript
                                      upload [13] iot.admin /opt/iobroker/node_modules/iobroker.iot/admin/static/css/main.d4bed9c6.chunk.css.map static/css/main.d4bed9c6.chunk.css.map application/json
                                      upload [12] iot.admin /opt/iobroker/node_modules/iobroker.iot/admin/static/css/main.d4bed9c6.chunk.css static/css/main.d4bed9c6.chunk.css text/css
                                      upload [11] iot.admin /opt/iobroker/node_modules/iobroker.iot/admin/static/css/2.0302007b.chunk.css.map static/css/2.0302007b.chunk.css.map application/json
                                      upload [10] iot.admin /opt/iobroker/node_modules/iobroker.iot/admin/static/css/2.0302007b.chunk.css static/css/2.0302007b.chunk.css text/css
                                      upload [9] iot.admin /opt/iobroker/node_modules/iobroker.iot/admin/service-worker.js service-worker.js application/javascript
                                      upload [8] iot.admin /opt/iobroker/node_modules/iobroker.iot/admin/precache-manifest.947cb21c995d58e8de9a86c4709adcc5.js precache-manifest.947cb21c995d58e8de9a86c4709adcc5.js application/javascript
                                      upload [7] iot.admin /opt/iobroker/node_modules/iobroker.iot/admin/manifest.json manifest.json application/json
                                      upload [6] iot.admin /opt/iobroker/node_modules/iobroker.iot/admin/iot.png iot.png image/png
                                      upload [5] iot.admin /opt/iobroker/node_modules/iobroker.iot/admin/index_m.html index_m.html text/html
                                      upload [4] iot.admin /opt/iobroker/node_modules/iobroker.iot/admin/favicon.ico favicon.ico image/vnd.microsoft.icon
                                      upload [3] iot.admin /opt/iobroker/node_modules/iobroker.iot/admin/blockly.js blockly.js application/javascript
                                      upload [2] iot.admin /opt/iobroker/node_modules/iobroker.iot/admin/asset-manifest.json asset-manifest.json application/json
                                      upload [1] iot.admin /opt/iobroker/node_modules/iobroker.iot/admin/alexalogo.png alexalogo.png image/png
                                      upload [0] iot.admin /opt/iobroker/node_modules/iobroker.iot/admin/actions.js actions.js application/javascript
                                      Adapter "iot" updated
                                      host.pi-iobroker Adapter "system.adapter.iot.0" is started
                                      process exited with code 0
                                      

                                      Erst verschwindet das Update von der Liste, die Zahl der zu aktualisierenden Updates bleibt gleich... Wenn ich dann die Seite wechsel und wieder zurück zu den Adaptern komme ist er aber trotzdem wieder da.

                                      Naja... Irgendwas hat sich kaputt gestanden. Habe schon Wochen nichts mehr am iobroker verändert.

                                      1 Reply Last reply
                                      0
                                      • apollon77A Offline
                                        apollon77A Offline
                                        apollon77
                                        wrote on last edited by
                                        #18

                                        Naja du hast 1.4.10 installiert aber 1.4.11 gibts jetzt schon. Kann sein das er nach dem Update erst Repo aktualisiert hat?

                                        Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

                                        • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
                                        • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
                                        B 1 Reply Last reply
                                        0
                                        • apollon77A apollon77

                                          Naja du hast 1.4.10 installiert aber 1.4.11 gibts jetzt schon. Kann sein das er nach dem Update erst Repo aktualisiert hat?

                                          B Offline
                                          B Offline
                                          Bielefelder81
                                          wrote on last edited by
                                          #19

                                          @apollon77 Als verfügbare Version wir mir immer noch nur 1.4.10 angezeigt. Wechsel von 1.4.6 auf 1.4.10

                                          apollon77A 1 Reply Last reply
                                          0
                                          • apollon77A Offline
                                            apollon77A Offline
                                            apollon77
                                            wrote on last edited by
                                            #20

                                            Sorry my fault ... 1.4.11 ist nich nicht draussen

                                            Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

                                            • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
                                            • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
                                            1 Reply Last reply
                                            0
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes


                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            756

                                            Online

                                            32.4k

                                            Users

                                            81.4k

                                            Topics

                                            1.3m

                                            Posts
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            ioBroker Community 2014-2025
                                            logo
                                            • Login

                                            • Don't have an account? Register

                                            • Login or register to search.
                                            • First post
                                              Last post
                                            0
                                            • Recent
                                            • Tags
                                            • Unread 0
                                            • Categories
                                            • Unreplied
                                            • Popular
                                            • GitHub
                                            • Docu
                                            • Hilfe