DitheringIdiot / dither-me-this

Generate dithered images at build time for your static website
MIT License
23 stars 3 forks source link

Adding package via npm fails on machines that don't have the canvas dependencies #3

Open e-simpson opened 9 months ago

e-simpson commented 9 months ago

I guess this is an issue for the canvas package this package used, so feel free to close, or perhaps just note in the readme.

Yarn/npm/bun add dither-me-this

Fails with a lengthy error that is the same as this issue:

https://github.com/Automattic/node-canvas/issues/2306

To fix this, the user must install the brew/choco packages pkg-config cairo pango libpng jpeg giflib librsvg pixman.

e-simpson commented 9 months ago

My mistake, that doesn't fix the issue. It looks like Canvas is still working on support for Node >=18 and Apple Silicon chips.

https://github.com/Automattic/node-canvas/issues/2303

https://github.com/Automattic/node-canvas/issues/2036