I am having a problem installing installing the canvas module in node..It seems to be something with cairo I am getting this error...
npm http GET https://re
I followed the steps given by @Piyush. But I needed an extra step to make it work. I'm using OS X 10.14.5
So this is what I followed.
brew install pkg-config
brew install cairo
pkg-config --atleast-version=1.12.2 cairo
export PKG_CONFIG_PATH=/usr/X11/lib/pkgconfig/
export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:/usr/local/opt/libffi/lib/pkgconfig"
npm install canvas