$ npm install canvas
But there’s a thingy that doesn’t work in Homebrew. I found the answer in this thread on their GitHub. On OSX you have to call this command before you can install
$ export PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig
Then we can install
npm like we’d expect.