I'm trying to install : "node-red-contrib-model-asset-exchange 0.2.3" node.
Tried both palette and terminal.
In both cases installation fails.
Is there anything specific about this node that should be done prior to installation?
Please advice.
Logs:
019-04-29T13:58:33.201Z Install : node-red-contrib-model-asset-exchange 0.2.3
2019-04-29T13:58:33.221Z npm install --no-audit --no-update-notifier --save --save-prefix="~" --production node-red-contrib-model-asset-exchange@0.2.3
2019-04-29T13:58:47.434Z [err] npm WARN deprecated hawk@6.0.2: This module moved to @hapi/hawk. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
2019-04-29T13:58:48.563Z [err] npm
2019-04-29T13:58:48.565Z [err] WARN deprecated hoek@4.2.1: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
2019-04-29T13:58:48.605Z [err] npm
2019-04-29T13:58:48.606Z [err] WARN deprecated boom@4.3.1: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
2019-04-29T13:58:48.610Z [err] npm
2019-04-29T13:58:48.611Z [err] WARN deprecated cryptiles@3.1.4: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
2019-04-29T13:58:48.624Z [err] npm WARN deprecated sntp@2.1.0: This module moved to @hapi/sntp. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
2019-04-29T13:58:48.639Z [err] npm
2019-04-29T13:58:48.639Z [err] WARN deprecated boom@5.2.0: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
2019-04-29T13:58:56.064Z [out]
2019-04-29T13:58:56.064Z [out] > canvas@2.4.1 install /home/pi/.node-red/node_modules/canvas
2019-04-29T13:58:56.064Z [out] > node-pre-gyp install --fallback-to-build
2019-04-29T13:58:56.064Z [out]
2019-04-29T13:58:59.824Z [err] node-pre-gyp
2019-04-29T13:58:59.824Z [err]
2019-04-29T13:58:59.825Z [err] WARN
2019-04-29T13:58:59.825Z [err] Using request for node-pre-gyp https download
2019-04-29T13:59:01.098Z [err] node-pre-gyp
2019-04-29T13:59:01.099Z [err] WARN Tried to download(404): https://github.com/node-gfx/node-canvas-prebuilt/releases/download/v2.4.1/canvas-v2.4.1-node-v57-linux-glibc-arm.tar.gz
2019-04-29T13:59:01.099Z [err] node-pre-gyp WARN
2019-04-29T13:59:01.100Z [err] Pre-built binaries not found for canvas@2.4.1 and node@8.11.1 (node-v57 ABI, glibc) (falling back to source compile with node-gyp)
2019-04-29T13:59:17.194Z [err] Package pixman-1 was not found in the pkg-config search path.
2019-04-29T13:59:17.194Z [err] Perhaps you should add the directory containing `pixman-1.pc'
2019-04-29T13:59:17.194Z [err] to the PKG_CONFIG_PATH environment variable
2019-04-29T13:59:17.194Z [err] No package 'pixman-1' found
2019-04-29T13:59:17.194Z [err] gyp: Call to 'pkg-config pixman-1 --libs' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
2019-04-29T13:59:17.239Z [err] gyp
2019-04-29T13:59:17.240Z [err]
2019-04-29T13:59:17.240Z [err] ERR! configure error
2019-04-29T13:59:17.244Z [err] gyp
2019-04-29T13:59:17.244Z [err] ERR! stack Error: `gyp` failed with exit code: 1
2019-04-29T13:59:17.244Z [err] gyp
2019-04-29T13:59:17.245Z [err] ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:345:16)
2019-04-29T13:59:17.245Z [err] gyp ERR!
2019-04-29T13:59:17.246Z [err] stack at emitTwo (events.js:126:13)
2019-04-29T13:59:17.246Z [err] gyp ERR! stack at ChildProcess.emit (events.js:214:7)
2019-04-29T13:59:17.246Z [err] gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
2019-04-29T13:59:17.247Z [err] gyp
2019-04-29T13:59:17.250Z [err]
2019-04-29T13:59:17.250Z [err] ERR! System Linux 4.14.98-v7+
2019-04-29T13:59:17.251Z [err] gyp
2019-04-29T13:59:17.252Z [err] ERR! command "/usr/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/home/pi/.node-red/node_modules/canvas/build/Release/canvas.node" "--module_name=canvas" "--module_path=/home/pi/.node-red/node_modules/canvas/build/Release" "--napi_version=1" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v57"
2019-04-29T13:59:17.252Z [err] gyp ERR!
2019-04-29T13:59:17.253Z [err] cwd /home/pi/.node-red/node_modules/canvas
2019-04-29T13:59:17.253Z [err] gyp ERR!
2019-04-29T13:59:17.254Z [err] node -v v8.11.1
2019-04-29T13:59:17.254Z [err] gyp ERR!
2019-04-29T13:59:17.255Z [err] node-gyp -v v3.8.0
2019-04-29T13:59:17.255Z [err] gyp
2019-04-29T13:59:17.256Z [err] ERR! not ok
2019-04-29T13:59:17.273Z [err] node-pre-gyp ERR! build error
2019-04-29T13:59:17.274Z [err] node-pre-gyp
2019-04-29T13:59:17.275Z [err] ERR! stack Error: Failed to execute '/usr/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/home/pi/.node-red/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/home/pi/.node-red/node_modules/canvas/build/Release --napi_version=1 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v57' (1)
2019-04-29T13:59:17.275Z [err] node-pre-gyp ERR!
2019-04-29T13:59:17.276Z [err] stack at ChildProcess.<anonymous> (/home/pi/.node-red/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
2019-04-29T13:59:17.276Z [err] node-pre-gyp ERR! stack at emitTwo (events.js:126:13)
2019-04-29T13:59:17.276Z [err] node-pre-gyp ERR! stack
2019-04-29T13:59:17.277Z [err] at ChildProcess.emit (events.js:214:7)
2019-04-29T13:59:17.277Z [err] node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:925:16)
2019-04-29T13:59:17.277Z [err] node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
2019-04-29T13:59:17.279Z [err] node-pre-gyp
2019-04-29T13:59:17.280Z [err] ERR! System Linux 4.14.98-v7+
2019-04-29T13:59:17.283Z [err] node-pre-gyp ERR!
2019-04-29T13:59:17.284Z [err] command "/usr/bin/node" "/home/pi/.node-red/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
2019-04-29T13:59:17.284Z [err] node-pre-gyp ERR! cwd /home/pi/.node-red/node_modules/canvas
2019-04-29T13:59:17.284Z [err] node-pre-gyp ERR! node -v v8.11.1
2019-04-29T13:59:17.284Z [err] node-pre-gyp ERR! node-pre-gyp -v v0.11.0
2019-04-29T13:59:17.285Z [err] node-pre-gyp ERR!
2019-04-29T13:59:17.286Z [err] not ok
2019-04-29T13:59:17.288Z [out] Failed to execute '/usr/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/home/pi/.node-red/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/home/pi/.node-red/node_modules/canvas/build/Release --napi_version=1 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v57' (1)
2019-04-29T13:59:18.555Z [err] npm
2019-04-29T13:59:18.556Z [err] ERR! code ELIFECYCLE
2019-04-29T13:59:18.558Z [err] npm ERR! errno 1
2019-04-29T13:59:18.566Z [err] npm
2019-04-29T13:59:18.567Z [err] ERR! canvas@2.4.1 install: `node-pre-gyp install --fallback-to-build`
2019-04-29T13:59:18.567Z [err] npm ERR! Exit status 1
2019-04-29T13:59:18.568Z [err] npm
2019-04-29T13:59:18.568Z [err] ERR!
2019-04-29T13:59:18.568Z [err] npm ERR!
2019-04-29T13:59:18.569Z [err] Failed at the canvas@2.4.1 install script.
2019-04-29T13:59:18.569Z [err] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2019-04-29T13:59:18.710Z [err]
2019-04-29T13:59:18.711Z [err] npm ERR! A complete log of this run can be found in:
2019-04-29T13:59:18.711Z [err] npm ERR! /home/pi/.npm/_logs/2019-04-29T13_59_18_644Z-debug.log
2019-04-29T13:59:18.732Z rc=1
2019-04-29T13:59:17.194Z [err] Perhaps you should add the directory containing `pixman-1.pc'
2019-04-29T13:59:17.194Z [err] to the PKG_CONFIG_PATH environment variable
2019-04-29T13:59:17.194Z [err] No package 'pixman-1' found
2019-04-29T13:59:17.194Z [err] gyp: Call to 'pkg-config pixman-1 --libs' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
There’s nothing listed in the readme that says you need to install anything else, but the errors suggest you do.
Personally I’d suggest that you open an issue direct with the author, by following the link to the nodes page on github from the nodes page on flows.nodered.org
As if you do need to install it separately the ReadMe should make that clear
A bit tricky for us that do not speak your language as you have not translated the (probably) important error messages.
However you might be better to raise the ongoing problem as an issue on the gitbub repo so you will get the right advice and also the author will know to improve his documentation.