NEWS
[Gelöst] Canvas Modul kann nicht nachinstalliert werden
-
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
-
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.
-
Hast du zwei Node Versionen installiert?
Im Log steht: node -v v11.6.0
Du schreibst: 8.15.0
-
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 …