-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue while installing canvas #1487
Comments
There's no prebuild available for musl libc (node-gfx/node-canvas-prebuilt#77). Until there is, you'll have to build from source (https://github.com/Automattic/node-canvas#compiling). |
Which is the latest version available for musl libc |
There's never been a musl prebuild for any version of node-canvas yet. |
Here are the packages I had to install to get it to install and compile from source on Alpine. apk add --no-cache make gcc g++ python pkgconfig pixman-dev cairo-dev pango-dev libjpeg-turbo-dev giflib-dev |
Thanks @GimpMaster It worked like a charm. |
Issue or Feature
When installing canvas on Linux the following error pops up.
node-pre-gyp WARN Tried to download(404): https://github.com/node-gfx/node-canvas-prebuilt/releases/download/v2.6.0/canvas-v2.6.0-node-v64-linux-musl-x64.tar.gz
Steps to Reproduce
Do
npm install canvas
on linux.Your Environment
The text was updated successfully, but these errors were encountered: