Problem to install node-red-contrib-model-asset-exchange 0.2.3

Hi,

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

Error looks pretty clear.

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

also you have nodejs 8.11.1 - which version of npm do you have ? npm -v
I suspect you have an older version of that also.

I updated both now.
Nodejs v10.15.3
npm 6.9.0

Problem still remaining

You still have to install pixman.

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

Pixman installed.
Next was pangocairo, also installed.
Still not possible to install
Current log:

019-04-30T11:10:01.590Z Install : node-red-contrib-model-asset-exchange 0.2.3

2019-04-30T11:10:01.765Z npm install --no-audit --no-update-notifier --save --save-prefix="~" --production node-red-contrib-model-asset-exchange@0.2.3
2019-04-30T11:10:18.582Z [out] 
2019-04-30T11:10:18.582Z [out] > canvas@2.4.1 install /home/pi/.node-red/node_modules/canvas
2019-04-30T11:10:18.582Z [out] > node-pre-gyp install --fallback-to-build
2019-04-30T11:10:18.582Z [out] 
2019-04-30T11:10:22.501Z [err] node-pre-gyp
2019-04-30T11:10:22.503Z [err]  
2019-04-30T11:10:22.503Z [err] WARN Using request for node-pre-gyp https download 
2019-04-30T11:10:23.399Z [err] node-pre-gyp
2019-04-30T11:10:23.400Z [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-30T11:10:23.400Z [err] node-pre-gyp WARN
2019-04-30T11:10:23.401Z [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-30T11:10:43.187Z [out] make: Wejście do katalogu '/home/pi/.node-red/node_modules/canvas/build'
2019-04-30T11:10:43.195Z [out]   SOLINK_MODULE(target) Release/obj.target/canvas-postbuild.node
2019-04-30T11:10:43.876Z [out]   COPY Release/canvas-postbuild.node
2019-04-30T11:10:43.904Z [out]   CXX(target) Release/obj.target/canvas/src/backend/Backend.o
2019-04-30T11:10:49.211Z [out]   CXX(target) Release/obj.target/canvas/src/backend/ImageBackend.o
2019-04-30T11:10:53.633Z [out]   CXX(target) Release/obj.target/canvas/src/backend/PdfBackend.o
2019-04-30T11:10:54.528Z [err] In file included from ../src/backend/PdfBackend.h:4:0,
2019-04-30T11:10:54.528Z [err]                  from ../src/backend/PdfBackend.cc:1:
2019-04-30T11:10:54.528Z [err] ../src/backend/../closure.h:6:21: fatal error: jpeglib.h: Nie ma takiego pliku ani katalogu
2019-04-30T11:10:54.528Z [err]  #include <jpeglib.h>
2019-04-30T11:10:54.528Z [err]                      ^
2019-04-30T11:10:54.528Z [err] compilation terminated.
2019-04-30T11:10:54.539Z [out] canvas.target.mk:132: polecenia dla obiektu 'Release/obj.target/canvas/src/backend/PdfBackend.o' nie powiodły się
2019-04-30T11:10:54.540Z [out] make: Opuszczenie katalogu '/home/pi/.node-red/node_modules/canvas/build'
2019-04-30T11:10:54.541Z [err] make: *** [Release/obj.target/canvas/src/backend/PdfBackend.o] Błąd 1
2019-04-30T11:10:54.560Z [err] gyp
2019-04-30T11:10:54.566Z [err]  
2019-04-30T11:10:54.566Z [err] ERR!
2019-04-30T11:10:54.567Z [err]  build error 
2019-04-30T11:10:54.571Z [err] gyp
2019-04-30T11:10:54.571Z [err]  ERR! stack Error: `make` failed with exit code: 2
2019-04-30T11:10:54.572Z [err] gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
2019-04-30T11:10:54.572Z [err] gyp ERR! stack
2019-04-30T11:10:54.573Z [err]      at emitTwo (events.js:126:13)
2019-04-30T11:10:54.573Z [err] gyp ERR! stack     at ChildProcess.emit (events.js:214:7)
2019-04-30T11:10:54.573Z [err] gyp ERR! stack
2019-04-30T11:10:54.574Z [err]      at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
2019-04-30T11:10:54.574Z [err] gyp
2019-04-30T11:10:54.575Z [err]  ERR! System Linux 4.14.98-v7+
2019-04-30T11:10:54.575Z [err] gyp
2019-04-30T11:10:54.576Z [err]  ERR! command "/usr/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--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-30T11:10:54.577Z [err] gyp ERR! 
2019-04-30T11:10:54.578Z [err] cwd /home/pi/.node-red/node_modules/canvas
2019-04-30T11:10:54.578Z [err] gyp ERR! node -v v8.11.1
2019-04-30T11:10:54.581Z [err] gyp ERR! node-gyp -v v3.8.0
2019-04-30T11:10:54.581Z [err] gyp ERR! not ok 
2019-04-30T11:10:54.606Z [err] node-pre-gyp
2019-04-30T11:10:54.607Z [err]  ERR! build error 
2019-04-30T11:10:54.609Z [err] node-pre-gyp
2019-04-30T11:10:54.610Z [err]  ERR! stack Error: Failed to execute '/usr/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --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-30T11:10:54.610Z [err] node-pre-gyp ERR!
2019-04-30T11:10:54.611Z [err]  stack     at ChildProcess.<anonymous> (/home/pi/.node-red/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
2019-04-30T11:10:54.611Z [err] node-pre-gyp ERR! stack
2019-04-30T11:10:54.611Z [err]      at emitTwo (events.js:126:13)
2019-04-30T11:10:54.611Z [err] node-pre-gyp ERR! 
2019-04-30T11:10:54.611Z [err] stack     at ChildProcess.emit (events.js:214:7)
2019-04-30T11:10:54.611Z [err] node-pre-gyp
2019-04-30T11:10:54.611Z [err]  ERR! stack
2019-04-30T11:10:54.611Z [err]      at maybeClose (internal/child_process.js:925:16)
2019-04-30T11:10:54.611Z [err] node-pre-gyp 
2019-04-30T11:10:54.612Z [err] ERR! stack
2019-04-30T11:10:54.612Z [err]      at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
2019-04-30T11:10:54.614Z [err] node-pre-gyp
2019-04-30T11:10:54.615Z [err]  ERR! System Linux 4.14.98-v7+
2019-04-30T11:10:54.615Z [err] node-pre-gyp ERR! command
2019-04-30T11:10:54.616Z [err]  "/usr/bin/node" "/home/pi/.node-red/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
2019-04-30T11:10:54.616Z [err] node-pre-gyp ERR! 
2019-04-30T11:10:54.617Z [err] cwd /home/pi/.node-red/node_modules/canvas
2019-04-30T11:10:54.617Z [err] node-pre-gyp ERR! node -v v8.11.1
2019-04-30T11:10:54.618Z [err] node-pre-gyp ERR! node-pre-gyp -v v0.11.0
2019-04-30T11:10:54.619Z [err] node-pre-gyp ERR! not ok 
2019-04-30T11:10:54.621Z [out] Failed to execute '/usr/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --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-30T11:10:56.622Z [err] npm
2019-04-30T11:10:56.622Z [err]  ERR! code ELIFECYCLE
2019-04-30T11:10:56.623Z [err] npm
2019-04-30T11:10:56.623Z [err]  ERR! errno
2019-04-30T11:10:56.623Z [err]  1
2019-04-30T11:10:56.629Z [err] npm
2019-04-30T11:10:56.629Z [err]  ERR! canvas@2.4.1 install: `node-pre-gyp install --fallback-to-build`
2019-04-30T11:10:56.629Z [err] npm ERR! Exit status 1
2019-04-30T11:10:56.629Z [err] npm
2019-04-30T11:10:56.630Z [err]  ERR! 
2019-04-30T11:10:56.630Z [err] npm 
2019-04-30T11:10:56.630Z [err] ERR! Failed at the canvas@2.4.1 install script.
2019-04-30T11:10:56.630Z [err] npm 
2019-04-30T11:10:56.630Z [err] ERR! This is probably not a problem with npm. There is likely additional logging output above.
2019-04-30T11:10:56.728Z [err] 
2019-04-30T11:10:56.729Z [err] npm ERR! A complete log of this run can be found in:
2019-04-30T11:10:56.729Z [err] npm ERR!
2019-04-30T11:10:56.729Z [err]      /home/pi/.npm/_logs/2019-04-30T11_10_56_678Z-debug.log
2019-04-30T11:10:56.754Z rc=1

Fully agree. I reported this to author

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.

Following Author's recommendation I installed version 0.2.0 and confirm it works.
They'll work to improve 0.2.3