Cairo error
petulla opened this issue · 2 comments
petulla commented
I got a bit hung up on this. But anyone who gets:
Package cairo was not found in the pkg-config search path. Perhaps you should add the directory containing
cairo.pc'
to the PKG_CONFIG_PATH environment variable
No package 'cairo' found
gyp: Call to './util/has_cairo_freetype.sh' returned exit status 0. while trying to load binding.gyp`
on npm install
needs to install Cairo, using
brew install cairo
stznh01 commented
I have installed cairo but the error message remains the same.
mbostock commented
Thanks for the feedback. This is a support issue rather than a bug, so I’m closing. There are some tips on the README on how to install node-canvas, but probably Stack Overflow is a better place to get assistance.