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

Can't install Canvas. #1050

Closed
itsjakeb opened this issue Dec 11, 2017 · 2 comments
Closed

Can't install Canvas. #1050

itsjakeb opened this issue Dec 11, 2017 · 2 comments

Comments

@itsjakeb
Copy link

Issue or Feature

Can't install canvas 2.0.0-alpha.7.

Steps to Reproduce

Add canvas to the package.json with the version ^2.0.0-alpha.7.
Returns:

Package pangocairo was not found in the pkg-config search path.
Perhaps you should add the directory containing `pangocairo.pc'
to the PKG_CONFIG_PATH environment variable
No package 'pangocairo' found
gyp: Call to 'pkg-config pangocairo --libs' returned exit status 1 while in binding.gyp. while trying to load binding.gyp

Your Environment

  • Version of node-canvas (e.g. 1.4.0): ?
  • Environment (e.g. node 4.2.0 on Mac OS X 10.8): node 8.1.2 on Mac OS 10.13.1
@LinusU
Copy link
Collaborator

LinusU commented Dec 12, 2017

Have you installed the required dependencies?

brew install pkg-config cairo pango libpng jpeg giflib

@itsjakeb
Copy link
Author

Yes, I did and something went wrong I think. I reinstalled them and it started working, thanks anyway!

ron-wolf added a commit to ron-wolf/operator-mono-lig that referenced this issue Sep 12, 2021
These two libraries are required by canvas, which in turn is required by font-tools.

See the following for more info on this error:
Automattic/node-canvas#599 (comment)
Automattic/node-canvas#1050 (comment)
https://www.google.com/search?q=pangocairo.pc
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