gemini86 / node-red-contrib-chart-image

2 stars 3 forks source link

could not install the node due to canvas missing #24

Open porzim opened 1 year ago

porzim commented 1 year ago

Hi we have tried to install the node, howevr the Node-canvas seems not anymore available on git image

steve2211 commented 1 year ago

Got the same issue. npm ERR! node-pre-gyp ERR! install response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.11.0/canvas-v2.11.0-node-v93-linux-musl-arm64.tar.gz

steve2211 commented 1 year ago

RUN apk add --no-cache \ build-base \ g++ \ cairo-dev \ jpeg-dev \ pango-dev \ giflib-dev Adding this to my dockerfile and rebuilding the container helped. You could run it inside of the node red container without the RUN as well.

B0rax commented 1 year ago

I tried to run this command inside the container but I get this error message: error: ' build-base' is not a valid world dependency, format is name(@tag)([<>~=]version)

When I remove build-base from the command, it complains about g++, next about Cairo-dev, etc....

I needed to run this command one package at a time