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 installing 2.10.1 on macOS with current stable node (18.9.1) #2122

Closed
1 task
zaun opened this issue Sep 25, 2022 · 4 comments
Closed
1 task

Issue installing 2.10.1 on macOS with current stable node (18.9.1) #2122

zaun opened this issue Sep 25, 2022 · 4 comments

Comments

@zaun
Copy link

zaun commented Sep 25, 2022

Issue or Feature

Can't download the pre-build binary.
npm ERR! node-pre-gyp http GET https://github.com/Automattic/node-canvas/releases/download/v2.10.1/canvas-v2.10.1-node-v108-darwin-unknown-x64.tar.gz

Steps to Reproduce

npm install

Your Environment

canvas: 2.10.1
node: v18.9.1
npm: 8.19.1
macOS: 12.5 (intel)

@CelesteCC
Copy link

I had the same problem
node-pre-gyp ERR! install request to https://github.com/Automattic/node-canvas/releases/download/v2.10.1/canvas-v2.10.1-node-v83-darwin-unknown-x64.tar.gz failed, reason: connect ETIMEDOUT 52.69.186.44:443 node-pre-gyp WARN Pre-built binaries not installable for canvas@2.10.1 and node@14.8.0 (node-v83 ABI, unknown) (falling back to source compile with node-gyp) node-pre-gyp WARN Hit error request to https://github.com/Automattic/node-canvas/releases/download/v2.10.1/canvas-v2.10.1-node-v83-darwin-unknown-x64.tar.gz failed, reason: connect ETIMEDOUT 52.69.186.44:443 /bin/sh: pkg-config: command not found gyp: Call to 'pkg-config pixman-1 --libs' returned exit status 127 while in binding.gyp. while trying to load binding.gyp

Your Environment
canvas: 2.10.1
node: v14.8.0
npm: 6.14.7
macOS: 12.5 (M1)

@Rohin-Chopra
Copy link

Rohin-Chopra commented Sep 28, 2022

I had the same problem as well

Your Environment
canvas: latest
node: v16.13.1
npm: 8.1.2
macOS: 12.5 (M1)

@zaun
Copy link
Author

zaun commented Oct 12, 2022

I am able to install node-canvas, if I also include node lts:

"dependencies": { "canvas": "^2.10.1", "node": "lts" }

@LinusU
Copy link
Collaborator

LinusU commented Oct 12, 2022

We don't currently provide prebuilds for Node.js 18, see #2025 for status.

When it's falling back to building, the error tells you what's wrong:

pkg-config: command not found gyp: Call to 'pkg-config pixman-1 --libs' returned exit status 127 while in binding.gyp.

You need to follow the instructions here to install pkg-config and the required libraries:

https://github.com/Automattic/node-canvas#compiling

@LinusU LinusU closed this as completed Oct 12, 2022
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

No branches or pull requests

4 participants