Closed wscourge closed 1 year ago
@wscourge @bostrom ~Same here!~
Nevermind, solved it with the help of this issue: https://github.com/Automattic/node-canvas/issues/1733
Solution is have certain image libraries installed on the system - brew comes to rescue: brew install pkg-config cairo pango libpng jpeg giflib librsvg
Thanks @MauriceArikoglu
It's mentioned in the installation instructions about installing dependencies for node-canvas.
I use an M1 mac myself and haven't had issues, but then again I don't actively use this library anymore, so feedback like this is still very welcome 🙂
Does this resolve your issue @wscourge?
After installing dependencies with brew as pointed out by @MauriceArikoglu , it does work. Thank you.
Version of the library Latest 5.2.0
Describe the bug Cannot install the library on Apple M1
To Reproduce Run
npm install text-to-image
on Apple M1.See the following:
Expected behavior Successfull installation
Screenshots
Additional context
node -v
: 18.12.1