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. Error/Bug
  4. [Gelöst] Canvas Modul kann nicht nachinstalliert werden

NEWS

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    16
    1
    1.9k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    911

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    2.2k

[Gelöst] Canvas Modul kann nicht nachinstalliert werden

Geplant Angeheftet Gesperrt Verschoben Error/Bug
4 Beiträge 2 Kommentatoren 1.6k Aufrufe
  • Ä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.
  • ElexilE Offline
    ElexilE Offline
    Elexil
    schrieb am zuletzt editiert von
    #1

    Hallo,

    ich wollte in meinem Javascript Adapter das Canvas Modul nachinstallieren. Ich habe dies also in der Instanz eingetragen und gespeichert.

    Nur leider ist nichts passiert. Ich habe es dann versucht manuell nach zu installieren und erhalte dabei folgende Fehlerausgabe:

    iobroker@ioBroker-Master:/opt/iobroker$ sudo npm i canvas@latest
    [sudo] Passwort für iobroker:
    
    > node-aead-crypto@2.1.4 install /opt/iobroker/node_modules/node-aead-crypto
    > node lib/install.js
    
    node-aead-crypto is no longer needed on NodeJS 10+
    
    > canvas@2.2.0 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 Pre-built binaries not installable for canvas@2.2.0 and node@11.6.0 (node-v67 ABI, glibc) (falling back to source compile with node-gyp)
    node-pre-gyp WARN Hit error EACCES: permission denied, mkdir '/opt/iobroker/node_modules/canvas/build'
    gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/11.6.0"
    gyp WARN EACCES attempting to reinstall using temporary dev dir "/opt/iobroker/node_modules/canvas/.node-gyp"
    gyp WARN install got an error, rolling back install
    gyp WARN install got an error, rolling back install
    gyp ERR! configure error
    gyp ERR! stack Error: EACCES: permission denied, mkdir '/opt/iobroker/node_modules/canvas/.node-gyp'
    gyp ERR! System Linux 4.9.0-8-amd64
    gyp ERR! command "/usr/local/bin/node" "/usr/local/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-prebuilt.node" "--module_name=canvas-prebuilt" "--module_path=/opt/iobroker/node_modules/canvas/build/Release" "--napi_version=3" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v67"
    gyp ERR! cwd /opt/iobroker/node_modules/canvas
    gyp ERR! node -v v11.6.0
    gyp ERR! node-gyp -v v3.8.0
    gyp ERR! not ok
    node-pre-gyp ERR! build error
    node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/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-prebuilt.node --module_name=canvas-prebuilt --module_path=/opt/iobroker/node_modules/canvas/build/Release --napi_version=3 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v67' (1)
    node-pre-gyp ERR! stack     at ChildProcess. <anonymous>(/opt/iobroker/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
    node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:188:13)
    node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:978:16)
    node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:265:5)
    node-pre-gyp ERR! System Linux 4.9.0-8-amd64
    node-pre-gyp ERR! command "/usr/local/bin/node" "/opt/iobroker/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 v11.6.0
    node-pre-gyp ERR! node-pre-gyp -v v0.11.0
    node-pre-gyp ERR! not ok
    Failed to execute '/usr/local/bin/node /usr/local/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-prebuilt.node --module_name=canvas-prebuilt --module_path=/opt/iobroker/node_modules/canvas/build/Release --napi_version=3 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v67' (1)
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-aead-crypto@2.1.4 (node_modules/node-aead-crypto):
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-aead-crypto@2.1.4 install: `node lib/install.js`
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
    
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! canvas@2.2.0 install: `node-pre-gyp install --fallback-to-build`
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the canvas@2.2.0 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!     /root/.npm/_logs/2019-01-05T12_30_51_092Z-debug.log</anonymous> 
    

    Ich bin absolut ratlos was mir das sagen soll, das System wurde heute frisch installiert.

    NPM: 6.5.0

    Node: 8.15.0

    Dieser Fehler mit gyp ist mir auch bei anderen Adapterinstallationen aufgefallen.

    Weiß hier jemand Rat?

    Danke

    Raik

    1 Antwort Letzte Antwort
    0
    • ElexilE Offline
      ElexilE Offline
      Elexil
      schrieb am zuletzt editiert von
      #2

      Ok, das Thema mit dem gyp habe ich in den Griff bekommen.

      Leider installiert sich nachwievor das Canvas und auch xmlhttprequest nicht, wenn ich diese im JS Adapter hinterlege.

      1 Antwort Letzte Antwort
      0
      • wendy2702W Offline
        wendy2702W Offline
        wendy2702
        schrieb am zuletzt editiert von
        #3

        Hast du zwei Node Versionen installiert?

        Im Log steht: node -v v11.6.0

        Du schreibst: 8.15.0

        Bitte keine Fragen per PN, die gehören ins Forum!

        Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

        1 Antwort Letzte Antwort
        0
        • ElexilE Offline
          ElexilE Offline
          Elexil
          schrieb am zuletzt editiert von
          #4

          @wendy2702:

          Hast du zwei Node Versionen installiert?

          Im Log steht: node -v v11.6.0

          Du schreibst: 8.15.0 `

          ich habe es gerade entdeckt. Nodejs war 8.15 aber node auf 11.6

          Habe nun auch node auf 8.15 installiert. scheint zu gehen … :)

          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

          719

          Online

          32.6k

          Benutzer

          82.2k

          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