topojson / us-atlas

Pre-built TopoJSON from the U.S. Census Bureau.
https://observablehq.com/@d3/u-s-map
ISC License
859 stars 139 forks source link

Cairo error #15

Closed petulla closed 9 years ago

petulla commented 9 years ago

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 containingcairo.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 9 years ago

I have installed cairo but the error message remains the same.

mbostock commented 9 years ago

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.