homebridge-deebotEcovacs icon indicating copy to clipboard operation
homebridge-deebotEcovacs copied to clipboard

Error during the installation of the plugin

Open mariomaz87 opened this issue 1 year ago • 0 comments

Hi, After updating to Node.js 18 I can't install the plugin, in the log I see:

Running post-install scripts...

[email protected] install node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! install response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.9.1/canvas-v2.9.1-node-v108-linux-glibc-arm.tar.gz 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 (/opt/homebridge/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:284:16) gyp ERR! stack at ChildProcess.emit (node:events:513:28) gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:291:12) gyp ERR! System Linux 5.15.76-v7+ gyp ERR! command "/opt/homebridge/bin/node" "/opt/homebridge/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/var/lib/homebridge/node_modules/homebridge-deebotecovacs/node_modules/canvas/build/Release/canvas.node" "--module_name=canvas" "--module_path=/var/lib/homebridge/node_modules/homebridge-deebotecovacs/node_modules/canvas/build/Release" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v108" gyp ERR! cwd /var/lib/homebridge/node_modules/homebridge-deebotecovacs/node_modules/canvas gyp ERR! node -v v18.12.1 gyp ERR! node-gyp -v v9.1.0 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute '/opt/homebridge/bin/node /opt/homebridge/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/var/lib/homebridge/node_modules/homebridge-deebotecovacs/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/var/lib/homebridge/node_modules/homebridge-deebotecovacs/node_modules/canvas/build/Release --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v108' (1) node-pre-gyp ERR! stack at ChildProcess. (/var/lib/homebridge/node_modules/homebridge-deebotecovacs/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js:89:23) node-pre-gyp ERR! stack at ChildProcess.emit (node:events:513:28) node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1091:16) node-pre-gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:302:5) node-pre-gyp ERR! System Linux 5.15.76-v7+ node-pre-gyp ERR! command "/opt/homebridge/bin/node" "/var/lib/homebridge/node_modules/homebridge-deebotecovacs/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd /var/lib/homebridge/node_modules/homebridge-deebotecovacs/node_modules/canvas node-pre-gyp ERR! node -v v18.12.1 node-pre-gyp ERR! node-pre-gyp -v v1.0.9 node-pre-gyp ERR! not ok Failed to execute '/opt/homebridge/bin/node /opt/homebridge/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/var/lib/homebridge/node_modules/homebridge-deebotecovacs/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/var/lib/homebridge/node_modules/homebridge-deebotecovacs/node_modules/canvas/build/Release --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v108' (1) npm ERR! code 1 npm ERR! path /var/lib/homebridge/node_modules/homebridge-deebotecovacs/node_modules/canvas npm ERR! command failed npm ERR! command sh -c -- node-pre-gyp install --fallback-to-build

npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2023-01-08T11_05_06_463Z-debug-0.log Failed to rebuild.

Bundled install / update could not complete. Trying regular install / update using npm.

Any idea? Thanks!

mariomaz87 avatar Jan 08 '23 11:01 mariomaz87