Skip to content

Fix the repo build for Apple M1 laptops#1029

Merged
trekhleb merged 1 commit into
masterfrom
no-canvas
Apr 10, 2023
Merged

Fix the repo build for Apple M1 laptops#1029
trekhleb merged 1 commit into
masterfrom
no-canvas

Conversation

@trekhleb

@trekhleb trekhleb commented Apr 10, 2023

Copy link
Copy Markdown
Owner

See the Can't install canvas npm package on Apple M1 issue for more details.

Basically, the solution is to replace the node-canvas with pngjs npm package.

Keeping the node-canvas package would require the M1 users to install the following dependencies (which is the overhead for this repo): brew install pkg-config cairo pango libpng jpeg giflib librsvg

@trekhleb trekhleb merged commit 14c5636 into master Apr 10, 2023
@trekhleb trekhleb deleted the no-canvas branch April 10, 2023 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant