(You can compile all the things, but in my opinion with Homebrew[on OSX] it is much more easier. How to install: https://github.com/LearnBoost/node-canvas/wiki/_pages)
- Install Homebrew: http://brew.sh/
- Install X11: http://xquartz.macosforge.org/landing/
- Then Cairo with:
brew install cairo
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/X11/lib/pkgconfig