Skip to content

Instantly share code, notes, and snippets.

@luckydrq
Created June 7, 2014 06:48
Show Gist options
  • Save luckydrq/1ead0f2635cb0568ec51 to your computer and use it in GitHub Desktop.
Save luckydrq/1ead0f2635cb0568ec51 to your computer and use it in GitHub Desktop.
OSX下安装node-canvas的注意事项
# 如果cairo是通过homebrew安装的,那么在~/.bashrc或者~/.zshrc里加入以下配置
# https://github.com/LearnBoost/node-canvas/wiki/Installation---OSX#installing-cairo
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/X11/lib/pkgconfig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment