Gatsby Build Error

Gatsby will throw a build error related to the sharp library when you try to launch the development server. This happens on my homebrew installed node.

gyp info spawn makegyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]CC(target) Release/ Release/nothing.awarning: /Library/Developer/CommandLineTools/usr/bin/libtool: archive library: Release/nothing.a the table of contents is empty (no object file members in the library define global symbols)TOUCH Release/ Release/ fatal error: 'vips/vips8' file not found#include <vips/vips8>^~~~~~~~~~~~1 error generated.make: *** [Release/] Error 1gyp ERR! build errorgyp ERR! stack Error: `make` failed with exit code: 2

To fix this all you need to do is to install libvibs via homebrew:

brew install libvips

That’s it!