Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • 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

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. ioBroker Allgemein
  4. Canvas Installation mit Node16 auf R4 nicht möglich

NEWS

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

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

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

Canvas Installation mit Node16 auf R4 nicht möglich

Geplant Angeheftet Gesperrt Verschoben ioBroker Allgemein
22 Beiträge 4 Kommentatoren 1.5k Aufrufe 4 Watching
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • Thomas BraunT Thomas Braun

    @skb sagte in Canvas Installation mit Node16 auf R4 nicht möglich:

    /root/.npm/

    Dir fehlt die Option -H beim sudo -u iobroker

    cd /opt/iobroker
    npm ls object-assign
    

    sagt?

    SKBS Offline
    SKBS Offline
    SKB
    Developer Most Active
    schrieb am zuletzt editiert von SKB
    #3

    @thomas-braun Auch mit -H klappt es nicht.

    Hab die Ausgabe oben abgeändert. Natürlich hat "root" da nichts verloren :)

    Die Ausgabe ist wie folgt:

    pi@ioBroker:/opt/iobroker $ npm ls object-assign
    iobroker.inst@2.0.3 /opt/iobroker
    ├─┬ @mapbox/node-pre-gyp@1.0.9
    │ └─┬ npmlog@5.0.1
    │   └─┬ gauge@3.0.2
    │     └── object-assign@4.1.1
    ├─┬ iobroker.jarvis@3.0.11
    │ └─┬ socket.io@4.4.1
    │   └─┬ engine.io@6.1.2
    │     └─┬ cors@2.8.5
    │       └── object-assign@4.1.1 deduped
    └─┬ iobroker.zigbee@1.7.5 (git+ssh://git@github.com/ioBroker/ioBroker.zigbee.git#2213603e53c333eee6c37e40914ce7ac59d8eb56)
      └─┬ zigbee-herdsman@0.14.46
        └─┬ mz@2.7.0
          └── object-assign@4.1.1 deduped
    

    Ich hatte mit dem object-assign auch bei dem Zigbee Adapzter Probleme - du erinnerst Dich vielleicht.
    Dort hatte die Neuinstallation von dem node-pre-gyp geholfen. Hier aber leider nicht ...

    ... wer nicht mit der Zeit geht, geht mit der Zeit ...

    Aktuelle Entwicklung: Energiefluss - erweitert (https://forum.iobroker.net/topic/64734)

    Thomas BraunT 1 Antwort Letzte Antwort
    0
    • SKBS SKB

      @thomas-braun Auch mit -H klappt es nicht.

      Hab die Ausgabe oben abgeändert. Natürlich hat "root" da nichts verloren :)

      Die Ausgabe ist wie folgt:

      pi@ioBroker:/opt/iobroker $ npm ls object-assign
      iobroker.inst@2.0.3 /opt/iobroker
      ├─┬ @mapbox/node-pre-gyp@1.0.9
      │ └─┬ npmlog@5.0.1
      │   └─┬ gauge@3.0.2
      │     └── object-assign@4.1.1
      ├─┬ iobroker.jarvis@3.0.11
      │ └─┬ socket.io@4.4.1
      │   └─┬ engine.io@6.1.2
      │     └─┬ cors@2.8.5
      │       └── object-assign@4.1.1 deduped
      └─┬ iobroker.zigbee@1.7.5 (git+ssh://git@github.com/ioBroker/ioBroker.zigbee.git#2213603e53c333eee6c37e40914ce7ac59d8eb56)
        └─┬ zigbee-herdsman@0.14.46
          └─┬ mz@2.7.0
            └── object-assign@4.1.1 deduped
      

      Ich hatte mit dem object-assign auch bei dem Zigbee Adapzter Probleme - du erinnerst Dich vielleicht.
      Dort hatte die Neuinstallation von dem node-pre-gyp geholfen. Hier aber leider nicht ...

      Thomas BraunT Online
      Thomas BraunT Online
      Thomas Braun
      Most Active
      schrieb am zuletzt editiert von
      #4

      @skb

      dpkg -L nodejs | grep render-template.js
      

      Linux-Werkzeugkasten:
      https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
      NodeJS Fixer Skript:
      https://forum.iobroker.net/topic/68035/iob-node-fix-skript
      iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

      SKBS 1 Antwort Letzte Antwort
      0
      • Thomas BraunT Thomas Braun

        @skb

        dpkg -L nodejs | grep render-template.js
        
        SKBS Offline
        SKBS Offline
        SKB
        Developer Most Active
        schrieb am zuletzt editiert von SKB
        #5

        @thomas-braun

        pi@ioBroker:/opt/iobroker $ dpkg -L nodejs | grep render-template.js
        /usr/lib/node_modules/npm/node_modules/gauge/lib/render-template.js
        

        ... wer nicht mit der Zeit geht, geht mit der Zeit ...

        Aktuelle Entwicklung: Energiefluss - erweitert (https://forum.iobroker.net/topic/64734)

        Thomas BraunT 1 Antwort Letzte Antwort
        0
        • SKBS SKB

          @thomas-braun

          pi@ioBroker:/opt/iobroker $ dpkg -L nodejs | grep render-template.js
          /usr/lib/node_modules/npm/node_modules/gauge/lib/render-template.js
          
          Thomas BraunT Online
          Thomas BraunT Online
          Thomas Braun
          Most Active
          schrieb am zuletzt editiert von Thomas Braun
          #6

          @skb

          Hab gerade mal auf meinem System probiert:

          echad@chet:/opt/iobroker $ npm install canvas
          
          up to date in 8s
          
          71 packages are looking for funding
            run `npm fund` for details
          echad@chet:/opt/iobroker $
          echad@chet:/opt/iobroker $ npm ls canvas
          iobroker.inst@3.0.0 /opt/iobroker
          ├── canvas@2.9.3
          ├─┬ iobroker.echarts@1.0.12
          │ ├── canvas@2.9.3 deduped
          │ └─┬ jsdom@19.0.0
          │   └── canvas@2.9.3 deduped
          ├─┬ iobroker.iot@1.11.9
          │ └── canvas@2.9.3 deduped
          └─┬ iobroker.mihome-vacuum@3.6.0
            └── canvas@2.9.3 deduped
          
          

          Linux-Werkzeugkasten:
          https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
          NodeJS Fixer Skript:
          https://forum.iobroker.net/topic/68035/iob-node-fix-skript
          iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

          SKBS 1 Antwort Letzte Antwort
          0
          • Thomas BraunT Thomas Braun

            @skb

            Hab gerade mal auf meinem System probiert:

            echad@chet:/opt/iobroker $ npm install canvas
            
            up to date in 8s
            
            71 packages are looking for funding
              run `npm fund` for details
            echad@chet:/opt/iobroker $
            echad@chet:/opt/iobroker $ npm ls canvas
            iobroker.inst@3.0.0 /opt/iobroker
            ├── canvas@2.9.3
            ├─┬ iobroker.echarts@1.0.12
            │ ├── canvas@2.9.3 deduped
            │ └─┬ jsdom@19.0.0
            │   └── canvas@2.9.3 deduped
            ├─┬ iobroker.iot@1.11.9
            │ └── canvas@2.9.3 deduped
            └─┬ iobroker.mihome-vacuum@3.6.0
              └── canvas@2.9.3 deduped
            
            
            SKBS Offline
            SKBS Offline
            SKB
            Developer Most Active
            schrieb am zuletzt editiert von SKB
            #7

            @thomas-braun Läufst Du auch auf einem Pi?

            Denn da soll es wohl immer mal Probleme geben, weil keine vor-kompilierten Pakete verfügbar sind.

            Ich habe auch die zugehörigen Pakete von apt-get installiert.

            sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
            

            Leider geht die Installation von Canvas immer noch erfolglos ...

            ... wer nicht mit der Zeit geht, geht mit der Zeit ...

            Aktuelle Entwicklung: Energiefluss - erweitert (https://forum.iobroker.net/topic/64734)

            Thomas BraunT 2 Antworten Letzte Antwort
            0
            • SKBS SKB

              @thomas-braun Läufst Du auch auf einem Pi?

              Denn da soll es wohl immer mal Probleme geben, weil keine vor-kompilierten Pakete verfügbar sind.

              Ich habe auch die zugehörigen Pakete von apt-get installiert.

              sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
              

              Leider geht die Installation von Canvas immer noch erfolglos ...

              Thomas BraunT Online
              Thomas BraunT Online
              Thomas Braun
              Most Active
              schrieb am zuletzt editiert von
              #8

              @skb

              Ja, allerdings die 64bit-Version vom RaspberryOS 'Bullseye'.

              Linux-Werkzeugkasten:
              https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
              NodeJS Fixer Skript:
              https://forum.iobroker.net/topic/68035/iob-node-fix-skript
              iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

              1 Antwort Letzte Antwort
              0
              • SKBS SKB

                @thomas-braun Läufst Du auch auf einem Pi?

                Denn da soll es wohl immer mal Probleme geben, weil keine vor-kompilierten Pakete verfügbar sind.

                Ich habe auch die zugehörigen Pakete von apt-get installiert.

                sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
                

                Leider geht die Installation von Canvas immer noch erfolglos ...

                Thomas BraunT Online
                Thomas BraunT Online
                Thomas Braun
                Most Active
                schrieb am zuletzt editiert von
                #9

                @skb

                Kann aber auch nicht an 32bit liegen, denn auf meinem Notfallsystem baut canvas auch mit 32 Bit intus:

                pi@mysterium:~ $ uname -a
                Linux mysterium 5.15.32-v7l+ #1538 SMP Thu Mar 31 19:39:41 BST 2022 armv7l GNU/Linux
                pi@mysterium:~ $ cd /opt/iobroker/
                pi@mysterium:/opt/iobroker $ npm ls canvas
                iobroker.inst@3.0.0 /opt/iobroker
                ├─┬ iobroker.echarts@1.0.12
                │ ├── canvas@2.9.3
                │ └─┬ jsdom@19.0.0
                │   └── canvas@2.9.3 deduped
                ├─┬ iobroker.iot@1.11.8
                │ └── canvas@2.9.3 deduped
                └─┬ iobroker.mihome-vacuum@3.4.2
                  └── canvas@2.9.3 deduped
                
                pi@mysterium:/opt/iobroker $ npm install canvas
                
                up to date in 7s
                
                68 packages are looking for funding
                  run `npm fund` for details
                pi@mysterium:/opt/iobroker $ npm ls canvas
                iobroker.inst@3.0.0 /opt/iobroker
                ├── canvas@2.9.3
                ├─┬ iobroker.echarts@1.0.12
                │ ├── canvas@2.9.3 deduped
                │ └─┬ jsdom@19.0.0
                │   └── canvas@2.9.3 deduped
                ├─┬ iobroker.iot@1.11.8
                │ └── canvas@2.9.3 deduped
                └─┬ iobroker.mihome-vacuum@3.4.2
                  └── canvas@2.9.3 deduped
                
                pi@mysterium:/opt/iobroker $
                

                Linux-Werkzeugkasten:
                https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                NodeJS Fixer Skript:
                https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                1 Antwort Letzte Antwort
                0
                • SKBS Offline
                  SKBS Offline
                  SKB
                  Developer Most Active
                  schrieb am zuletzt editiert von
                  #10

                  @thomas-braun Habe jetzt das System mal auf 64-Bit gezogen - dennoch kommt immer die Meldung, dass das Modul 'object'assign fehlt.

                  Auch denke ich, das Canvas mit Node16 irgendwie nicht so richtig installiert werden kann.

                  ... wer nicht mit der Zeit geht, geht mit der Zeit ...

                  Aktuelle Entwicklung: Energiefluss - erweitert (https://forum.iobroker.net/topic/64734)

                  Thomas BraunT 1 Antwort Letzte Antwort
                  0
                  • SKBS SKB

                    @thomas-braun Habe jetzt das System mal auf 64-Bit gezogen - dennoch kommt immer die Meldung, dass das Modul 'object'assign fehlt.

                    Auch denke ich, das Canvas mit Node16 irgendwie nicht so richtig installiert werden kann.

                    Thomas BraunT Online
                    Thomas BraunT Online
                    Thomas Braun
                    Most Active
                    schrieb am zuletzt editiert von
                    #11

                    @skb sagte in Canvas Installation mit Node16 auf R4 nicht möglich:

                    Auch denke ich, das Canvas mit Node16 irgendwie nicht so richtig installiert werden kann.

                    Hier geht es. Und mit node18 auch.

                    Linux-Werkzeugkasten:
                    https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                    NodeJS Fixer Skript:
                    https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                    iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                    SKBS 1 Antwort Letzte Antwort
                    0
                    • Thomas BraunT Thomas Braun

                      @skb sagte in Canvas Installation mit Node16 auf R4 nicht möglich:

                      Auch denke ich, das Canvas mit Node16 irgendwie nicht so richtig installiert werden kann.

                      Hier geht es. Und mit node18 auch.

                      SKBS Offline
                      SKBS Offline
                      SKB
                      Developer Most Active
                      schrieb am zuletzt editiert von
                      #12

                      @thomas-braun Sollte ich vielleicht von Node 16 auf Node 18 gehen?
                      Vielleicht wird das object-assign repariert?

                      ... wer nicht mit der Zeit geht, geht mit der Zeit ...

                      Aktuelle Entwicklung: Energiefluss - erweitert (https://forum.iobroker.net/topic/64734)

                      Thomas BraunT 1 Antwort Letzte Antwort
                      0
                      • SKBS SKB

                        @thomas-braun Sollte ich vielleicht von Node 16 auf Node 18 gehen?
                        Vielleicht wird das object-assign repariert?

                        Thomas BraunT Online
                        Thomas BraunT Online
                        Thomas Braun
                        Most Active
                        schrieb am zuletzt editiert von
                        #13

                        @skb

                        Vermutlich nicht. Da wird der Fehler woanders liegen. Ich weiß aber nicht wo, tut mir leid.

                        Linux-Werkzeugkasten:
                        https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                        NodeJS Fixer Skript:
                        https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                        iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                        SKBS 1 Antwort Letzte Antwort
                        0
                        • Thomas BraunT Thomas Braun

                          @skb

                          Vermutlich nicht. Da wird der Fehler woanders liegen. Ich weiß aber nicht wo, tut mir leid.

                          SKBS Offline
                          SKBS Offline
                          SKB
                          Developer Most Active
                          schrieb am zuletzt editiert von
                          #14

                          @thomas-braun Danke für die Einschätzung.

                          Hättest Du noch eine Idee, wo ich schauen könnte?

                          Wenn es ja bei Anderen geht, muss es ja insgesamt gehen...

                          ... wer nicht mit der Zeit geht, geht mit der Zeit ...

                          Aktuelle Entwicklung: Energiefluss - erweitert (https://forum.iobroker.net/topic/64734)

                          Thomas BraunT 1 Antwort Letzte Antwort
                          0
                          • SKBS SKB

                            @thomas-braun Danke für die Einschätzung.

                            Hättest Du noch eine Idee, wo ich schauen könnte?

                            Wenn es ja bei Anderen geht, muss es ja insgesamt gehen...

                            Thomas BraunT Online
                            Thomas BraunT Online
                            Thomas Braun
                            Most Active
                            schrieb am zuletzt editiert von
                            #15

                            @skb

                            Was passiert denn, wenn du ganz simpel

                            npm install canvas
                            

                            in /opt/iobroker ausführst?

                            Linux-Werkzeugkasten:
                            https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                            NodeJS Fixer Skript:
                            https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                            iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                            SKBS 1 Antwort Letzte Antwort
                            0
                            • Thomas BraunT Thomas Braun

                              @skb

                              Was passiert denn, wenn du ganz simpel

                              npm install canvas
                              

                              in /opt/iobroker ausführst?

                              SKBS Offline
                              SKBS Offline
                              SKB
                              Developer Most Active
                              schrieb am zuletzt editiert von
                              #16

                              @thomas-braun Ganz simpel dieses:

                              pi@ioBroker:/opt/iobroker $ npm install canvas
                              npm WARN skipping integrity check for git dependency ssh://git@github.com/SKB-CGN/ioBroker.wallbox.git
                              npm ERR! code 1
                              npm ERR! path /opt/iobroker/node_modules/canvas
                              npm ERR! command failed
                              npm ERR! command sh -c node-pre-gyp install --fallback-to-build --update-binary
                              npm ERR! Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js clean' (1)
                              npm ERR! node-pre-gyp info it worked if it ends with ok
                              npm ERR! node-pre-gyp info using node-pre-gyp@1.0.9
                              npm ERR! node-pre-gyp info using node@16.16.0 | linux | arm
                              npm ERR! node-pre-gyp http GET https://github.com/Automattic/node-canvas/releases/download/v2.9.3/canvas-v2.9.3-node-v93-linux-glibc-arm.tar.gz
                              npm ERR! node-pre-gyp ERR! install response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.9.3/canvas-v2.9.3-node-v93-linux-glibc-arm.tar.gz
                              npm ERR! node-pre-gyp WARN Pre-built binaries not installable for canvas@2.9.3 and node@16.16.0 (node-v93 ABI, glibc) (falling back to source compile with node-gyp)
                              npm ERR! node-pre-gyp WARN Hit error response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.9.3/canvas-v2.9.3-node-v93-linux-glibc-arm.tar.gz
                              npm ERR! node:internal/modules/cjs/loader:936
                              npm ERR!   throw err;
                              npm ERR!   ^
                              npm ERR!
                              npm ERR! Error: Cannot find module 'object-assign'
                              npm ERR! Require stack:
                              npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/render-template.js
                              npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/plumbing.js
                              npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/index.js
                              npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/npmlog/log.js
                              npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js
                              npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js
                              npm ERR!     at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
                              npm ERR!     at Function.Module._load (node:internal/modules/cjs/loader:778:27)
                              npm ERR!     at Module.require (node:internal/modules/cjs/loader:1005:19)
                              npm ERR!     at require (node:internal/modules/cjs/helpers:102:18)
                              npm ERR!     at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/render-template.js:4:20)
                              npm ERR!     at Module._compile (node:internal/modules/cjs/loader:1105:14)
                              npm ERR!     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
                              npm ERR!     at Module.load (node:internal/modules/cjs/loader:981:32)
                              npm ERR!     at Function.Module._load (node:internal/modules/cjs/loader:822:12)
                              npm ERR!     at Module.require (node:internal/modules/cjs/loader:1005:19) {
                              npm ERR!   code: 'MODULE_NOT_FOUND',
                              npm ERR!   requireStack: [
                              npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/render-template.js',
                              npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/plumbing.js',
                              npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/index.js',
                              npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/npmlog/log.js',
                              npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js',
                              npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js'
                              npm ERR!   ]
                              npm ERR! }
                              npm ERR! node-pre-gyp ERR! build error
                              npm ERR! 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 clean' (1)
                              npm ERR! node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/opt/iobroker/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js:89:23)
                              npm ERR! node-pre-gyp ERR! stack     at ChildProcess.emit (node:events:527:28)
                              npm ERR! node-pre-gyp ERR! stack     at maybeClose (node:internal/child_process:1092:16)
                              npm ERR! node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
                              npm ERR! node-pre-gyp ERR! System Linux 5.10.103-v8+
                              npm ERR! node-pre-gyp ERR! command "/usr/bin/node" "/opt/iobroker/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--update-binary"
                              npm ERR! node-pre-gyp ERR! cwd /opt/iobroker/node_modules/canvas
                              npm ERR! node-pre-gyp ERR! node -v v16.16.0
                              npm ERR! node-pre-gyp ERR! node-pre-gyp -v v1.0.9
                              npm ERR! node-pre-gyp ERR! not ok
                              
                              npm ERR! A complete log of this run can be found in:
                              npm ERR!     /home/iobroker/.npm/_logs/2022-07-23T20_08_48_029Z-debug-0.log
                              

                              ... wer nicht mit der Zeit geht, geht mit der Zeit ...

                              Aktuelle Entwicklung: Energiefluss - erweitert (https://forum.iobroker.net/topic/64734)

                              Thomas BraunT 1 Antwort Letzte Antwort
                              0
                              • SKBS SKB

                                @thomas-braun Ganz simpel dieses:

                                pi@ioBroker:/opt/iobroker $ npm install canvas
                                npm WARN skipping integrity check for git dependency ssh://git@github.com/SKB-CGN/ioBroker.wallbox.git
                                npm ERR! code 1
                                npm ERR! path /opt/iobroker/node_modules/canvas
                                npm ERR! command failed
                                npm ERR! command sh -c node-pre-gyp install --fallback-to-build --update-binary
                                npm ERR! Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js clean' (1)
                                npm ERR! node-pre-gyp info it worked if it ends with ok
                                npm ERR! node-pre-gyp info using node-pre-gyp@1.0.9
                                npm ERR! node-pre-gyp info using node@16.16.0 | linux | arm
                                npm ERR! node-pre-gyp http GET https://github.com/Automattic/node-canvas/releases/download/v2.9.3/canvas-v2.9.3-node-v93-linux-glibc-arm.tar.gz
                                npm ERR! node-pre-gyp ERR! install response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.9.3/canvas-v2.9.3-node-v93-linux-glibc-arm.tar.gz
                                npm ERR! node-pre-gyp WARN Pre-built binaries not installable for canvas@2.9.3 and node@16.16.0 (node-v93 ABI, glibc) (falling back to source compile with node-gyp)
                                npm ERR! node-pre-gyp WARN Hit error response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.9.3/canvas-v2.9.3-node-v93-linux-glibc-arm.tar.gz
                                npm ERR! node:internal/modules/cjs/loader:936
                                npm ERR!   throw err;
                                npm ERR!   ^
                                npm ERR!
                                npm ERR! Error: Cannot find module 'object-assign'
                                npm ERR! Require stack:
                                npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/render-template.js
                                npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/plumbing.js
                                npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/index.js
                                npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/npmlog/log.js
                                npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js
                                npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js
                                npm ERR!     at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
                                npm ERR!     at Function.Module._load (node:internal/modules/cjs/loader:778:27)
                                npm ERR!     at Module.require (node:internal/modules/cjs/loader:1005:19)
                                npm ERR!     at require (node:internal/modules/cjs/helpers:102:18)
                                npm ERR!     at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/render-template.js:4:20)
                                npm ERR!     at Module._compile (node:internal/modules/cjs/loader:1105:14)
                                npm ERR!     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
                                npm ERR!     at Module.load (node:internal/modules/cjs/loader:981:32)
                                npm ERR!     at Function.Module._load (node:internal/modules/cjs/loader:822:12)
                                npm ERR!     at Module.require (node:internal/modules/cjs/loader:1005:19) {
                                npm ERR!   code: 'MODULE_NOT_FOUND',
                                npm ERR!   requireStack: [
                                npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/render-template.js',
                                npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/plumbing.js',
                                npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/index.js',
                                npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/npmlog/log.js',
                                npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js',
                                npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js'
                                npm ERR!   ]
                                npm ERR! }
                                npm ERR! node-pre-gyp ERR! build error
                                npm ERR! 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 clean' (1)
                                npm ERR! node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/opt/iobroker/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js:89:23)
                                npm ERR! node-pre-gyp ERR! stack     at ChildProcess.emit (node:events:527:28)
                                npm ERR! node-pre-gyp ERR! stack     at maybeClose (node:internal/child_process:1092:16)
                                npm ERR! node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
                                npm ERR! node-pre-gyp ERR! System Linux 5.10.103-v8+
                                npm ERR! node-pre-gyp ERR! command "/usr/bin/node" "/opt/iobroker/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--update-binary"
                                npm ERR! node-pre-gyp ERR! cwd /opt/iobroker/node_modules/canvas
                                npm ERR! node-pre-gyp ERR! node -v v16.16.0
                                npm ERR! node-pre-gyp ERR! node-pre-gyp -v v1.0.9
                                npm ERR! node-pre-gyp ERR! not ok
                                
                                npm ERR! A complete log of this run can be found in:
                                npm ERR!     /home/iobroker/.npm/_logs/2022-07-23T20_08_48_029Z-debug-0.log
                                
                                Thomas BraunT Online
                                Thomas BraunT Online
                                Thomas Braun
                                Most Active
                                schrieb am zuletzt editiert von Thomas Braun
                                #17

                                @skb sagte in Canvas Installation mit Node16 auf R4 nicht möglich:

                                Das sieht ganz ähnlich aus:

                                https://github.com/Automattic/node-canvas/issues/2078

                                Da wird das dann --build-from-source gebaut, denn das funktioniert wohl gerade nicht:
                                By default, binaries for macOS, Linux and Windows will be downloaded. If you want to build from source, use npm install --build-from-source and see the Compiling section below.

                                Linux-Werkzeugkasten:
                                https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                                NodeJS Fixer Skript:
                                https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                                iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                                SKBS 1 Antwort Letzte Antwort
                                0
                                • Thomas BraunT Thomas Braun

                                  @skb sagte in Canvas Installation mit Node16 auf R4 nicht möglich:

                                  Das sieht ganz ähnlich aus:

                                  https://github.com/Automattic/node-canvas/issues/2078

                                  Da wird das dann --build-from-source gebaut, denn das funktioniert wohl gerade nicht:
                                  By default, binaries for macOS, Linux and Windows will be downloaded. If you want to build from source, use npm install --build-from-source and see the Compiling section below.

                                  SKBS Offline
                                  SKBS Offline
                                  SKB
                                  Developer Most Active
                                  schrieb am zuletzt editiert von
                                  #18

                                  @thomas-braun Ist dann "einfach":

                                  npm install canvas --build-from-source
                                  

                                  ?

                                  ... wer nicht mit der Zeit geht, geht mit der Zeit ...

                                  Aktuelle Entwicklung: Energiefluss - erweitert (https://forum.iobroker.net/topic/64734)

                                  Thomas BraunT A 2 Antworten Letzte Antwort
                                  0
                                  • SKBS SKB

                                    @thomas-braun Ist dann "einfach":

                                    npm install canvas --build-from-source
                                    

                                    ?

                                    Thomas BraunT Online
                                    Thomas BraunT Online
                                    Thomas Braun
                                    Most Active
                                    schrieb am zuletzt editiert von
                                    #19

                                    @skb

                                    Ich vermute ja. Ich hab das auch noch nie selber gebastelt.
                                    Die dev-Files hast du?

                                    sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
                                    

                                    Linux-Werkzeugkasten:
                                    https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                                    NodeJS Fixer Skript:
                                    https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                                    iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                                    1 Antwort Letzte Antwort
                                    0
                                    • SKBS SKB

                                      @thomas-braun Ist dann "einfach":

                                      npm install canvas --build-from-source
                                      

                                      ?

                                      A Offline
                                      A Offline
                                      anno171986
                                      schrieb am zuletzt editiert von
                                      #20

                                      @skb Hallo, ich habe ein ähnliches Problem:

                                      Cannot find required modules: Error: The module '/opt/iobroker/node_modules/canvas/build/Release/canvas.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 72. This version of Node.js requires NODE_MODULE_VERSION 93. Please try re-compiling or re-installing the module (for instance, using `npm rebuild` or `npm install`).
                                      

                                      und wenn ich es versuche neu zu installieren kommen auch Fehler:

                                      pi@raspberrypi:/opt/iobroker$ cd /opt/iobroker/node_modules
                                      pi@raspberrypi:/opt/iobroker/node_modules$ npm install canvas --build-from-source
                                      npm ERR! code 1
                                      npm ERR! path /opt/iobroker/node_modules/canvas
                                      npm ERR! command failed
                                      npm ERR! command sh /tmp/install-ab819b46.sh
                                      npm ERR! Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js clean' (1)
                                      npm ERR! node-pre-gyp info it worked if it ends with ok
                                      npm ERR! node-pre-gyp info using node-pre-gyp@1.0.10
                                      npm ERR! node-pre-gyp info using node@16.17.1 | linux | arm
                                      npm ERR! node-pre-gyp info build requesting source compile
                                      npm ERR! node:internal/modules/cjs/loader:959
                                      npm ERR!   throw err;
                                      npm ERR!   ^
                                      npm ERR!
                                      npm ERR! Error: Cannot find module 'object-assign'
                                      npm ERR! Require stack:
                                      npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/render-template.js
                                      npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/plumbing.js
                                      npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/index.js
                                      npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/npmlog/log.js
                                      npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js
                                      npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js
                                      npm ERR!     at Function.Module._resolveFilename (node:internal/modules/cjs/loader:956:15)
                                      npm ERR!     at Function.Module._load (node:internal/modules/cjs/loader:804:27)
                                      npm ERR!     at Module.require (node:internal/modules/cjs/loader:1028:19)
                                      npm ERR!     at require (node:internal/modules/cjs/helpers:102:18)
                                      npm ERR!     at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/render-template.js:4:20)
                                      npm ERR!     at Module._compile (node:internal/modules/cjs/loader:1126:14)
                                      npm ERR!     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
                                      npm ERR!     at Module.load (node:internal/modules/cjs/loader:1004:32)
                                      npm ERR!     at Function.Module._load (node:internal/modules/cjs/loader:839:12)
                                      npm ERR!     at Module.require (node:internal/modules/cjs/loader:1028:19) {
                                      npm ERR!   code: 'MODULE_NOT_FOUND',
                                      npm ERR!   requireStack: [
                                      npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/render-template.js',
                                      npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/plumbing.js',
                                      npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/index.js',
                                      npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/npmlog/log.js',
                                      npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js',
                                      npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js'
                                      npm ERR!   ]
                                      npm ERR! }
                                      npm ERR! node-pre-gyp ERR! build error
                                      npm ERR! 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 clean' (1)
                                      npm ERR! node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/opt/iobroker/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js:89:23)
                                      npm ERR! node-pre-gyp ERR! stack     at ChildProcess.emit (node:events:513:28)
                                      npm ERR! node-pre-gyp ERR! stack     at maybeClose (node:internal/child_process:1093:16)
                                      npm ERR! node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
                                      npm ERR! node-pre-gyp ERR! System Linux 5.10.103-v7l+
                                      npm ERR! node-pre-gyp ERR! command "/usr/bin/node" "/opt/iobroker/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--update-binary"
                                      npm ERR! node-pre-gyp ERR! cwd /opt/iobroker/node_modules/canvas
                                      npm ERR! node-pre-gyp ERR! node -v v16.17.1
                                      npm ERR! node-pre-gyp ERR! node-pre-gyp -v v1.0.10
                                      npm ERR! node-pre-gyp ERR! not ok
                                      
                                      npm ERR! A complete log of this run can be found in:
                                      npm ERR!     /home/pi/.npm/_logs/2022-11-17T21_24_58_078Z-debug-0.log
                                      

                                      Konntest du dein Problem lösen?

                                      M 1 Antwort Letzte Antwort
                                      0
                                      • A anno171986

                                        @skb Hallo, ich habe ein ähnliches Problem:

                                        Cannot find required modules: Error: The module '/opt/iobroker/node_modules/canvas/build/Release/canvas.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 72. This version of Node.js requires NODE_MODULE_VERSION 93. Please try re-compiling or re-installing the module (for instance, using `npm rebuild` or `npm install`).
                                        

                                        und wenn ich es versuche neu zu installieren kommen auch Fehler:

                                        pi@raspberrypi:/opt/iobroker$ cd /opt/iobroker/node_modules
                                        pi@raspberrypi:/opt/iobroker/node_modules$ npm install canvas --build-from-source
                                        npm ERR! code 1
                                        npm ERR! path /opt/iobroker/node_modules/canvas
                                        npm ERR! command failed
                                        npm ERR! command sh /tmp/install-ab819b46.sh
                                        npm ERR! Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js clean' (1)
                                        npm ERR! node-pre-gyp info it worked if it ends with ok
                                        npm ERR! node-pre-gyp info using node-pre-gyp@1.0.10
                                        npm ERR! node-pre-gyp info using node@16.17.1 | linux | arm
                                        npm ERR! node-pre-gyp info build requesting source compile
                                        npm ERR! node:internal/modules/cjs/loader:959
                                        npm ERR!   throw err;
                                        npm ERR!   ^
                                        npm ERR!
                                        npm ERR! Error: Cannot find module 'object-assign'
                                        npm ERR! Require stack:
                                        npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/render-template.js
                                        npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/plumbing.js
                                        npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/index.js
                                        npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/npmlog/log.js
                                        npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js
                                        npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js
                                        npm ERR!     at Function.Module._resolveFilename (node:internal/modules/cjs/loader:956:15)
                                        npm ERR!     at Function.Module._load (node:internal/modules/cjs/loader:804:27)
                                        npm ERR!     at Module.require (node:internal/modules/cjs/loader:1028:19)
                                        npm ERR!     at require (node:internal/modules/cjs/helpers:102:18)
                                        npm ERR!     at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/render-template.js:4:20)
                                        npm ERR!     at Module._compile (node:internal/modules/cjs/loader:1126:14)
                                        npm ERR!     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
                                        npm ERR!     at Module.load (node:internal/modules/cjs/loader:1004:32)
                                        npm ERR!     at Function.Module._load (node:internal/modules/cjs/loader:839:12)
                                        npm ERR!     at Module.require (node:internal/modules/cjs/loader:1028:19) {
                                        npm ERR!   code: 'MODULE_NOT_FOUND',
                                        npm ERR!   requireStack: [
                                        npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/render-template.js',
                                        npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/plumbing.js',
                                        npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/index.js',
                                        npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/npmlog/log.js',
                                        npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js',
                                        npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js'
                                        npm ERR!   ]
                                        npm ERR! }
                                        npm ERR! node-pre-gyp ERR! build error
                                        npm ERR! 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 clean' (1)
                                        npm ERR! node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/opt/iobroker/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js:89:23)
                                        npm ERR! node-pre-gyp ERR! stack     at ChildProcess.emit (node:events:513:28)
                                        npm ERR! node-pre-gyp ERR! stack     at maybeClose (node:internal/child_process:1093:16)
                                        npm ERR! node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
                                        npm ERR! node-pre-gyp ERR! System Linux 5.10.103-v7l+
                                        npm ERR! node-pre-gyp ERR! command "/usr/bin/node" "/opt/iobroker/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--update-binary"
                                        npm ERR! node-pre-gyp ERR! cwd /opt/iobroker/node_modules/canvas
                                        npm ERR! node-pre-gyp ERR! node -v v16.17.1
                                        npm ERR! node-pre-gyp ERR! node-pre-gyp -v v1.0.10
                                        npm ERR! node-pre-gyp ERR! not ok
                                        
                                        npm ERR! A complete log of this run can be found in:
                                        npm ERR!     /home/pi/.npm/_logs/2022-11-17T21_24_58_078Z-debug-0.log
                                        

                                        Konntest du dein Problem lösen?

                                        M Online
                                        M Online
                                        MCU
                                        schrieb am zuletzt editiert von
                                        #21

                                        @anno171986
                                        https://github.com/Automattic/node-canvas/issues/1879

                                        NUC i7 64GB mit Proxmox ---- Jarvis Infos Aktualisierungen der Doku auf Instagram verfolgen -> mcuiobroker Instagram
                                        Wenn Euch mein Vorschlag geholfen hat, bitte rechts "^" klicken.

                                        A 1 Antwort Letzte Antwort
                                        0
                                        • M MCU

                                          @anno171986
                                          https://github.com/Automattic/node-canvas/issues/1879

                                          A Offline
                                          A Offline
                                          anno171986
                                          schrieb am zuletzt editiert von
                                          #22

                                          @mcu HAbe ich auch schon gesehen. Weiß aber nicht wie ich das Modul löschen soll und was das für Auswirkungen haben kann

                                          1 Antwort Letzte Antwort
                                          0
                                          Antworten
                                          • In einem neuen Thema antworten
                                          Anmelden zum Antworten
                                          • Älteste zuerst
                                          • Neuste zuerst
                                          • Meiste Stimmen


                                          Support us

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

                                          400

                                          Online

                                          32.4k

                                          Benutzer

                                          81.5k

                                          Themen

                                          1.3m

                                          Beiträge
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Anmelden

                                          • Du hast noch kein Konto? Registrieren

                                          • Anmelden oder registrieren, um zu suchen
                                          • Erster Beitrag
                                            Letzter Beitrag
                                          0
                                          • Home
                                          • Aktuell
                                          • Tags
                                          • Ungelesen 0
                                          • Kategorien
                                          • Unreplied
                                          • Beliebt
                                          • GitHub
                                          • Docu
                                          • Hilfe