Skip to content
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

Closed
ghost opened this issue Nov 5, 2019 · 5 comments
Closed

Issue while installing canvas #1487

ghost opened this issue Nov 5, 2019 · 5 comments

Comments

@ghost
Copy link

ghost commented Nov 5, 2019

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

  • Environment: Node v10 on linux
@zbjornson
Copy link
Collaborator

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).

@ghost
Copy link
Author

ghost commented Nov 5, 2019

Which is the latest version available for musl libc

@zbjornson
Copy link
Collaborator

There's never been a musl prebuild for any version of node-canvas yet.

@GimpMaster
Copy link

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

@beingyash
Copy link

Thanks @GimpMaster It worked like a charm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants