$ gatsby new gatsby-site
error gatsby-site/node_modules/sharp: Command failed.
...
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
TOUCH Release/obj.target/libvips-cpp.stamp
CXX(target) Release/obj.target/sharp/src/common.o
../src/common.cc:25:10: fatal error: 'vips/vips8' file not found
#include <vips/vips8>
^~~~~~~~~~~~
1 error generated.
make: *** [Release/obj.target/sharp/src/common.o] Error 1
gyp ERR! build error
解决办法
https://github.com/gatsbyjs/gatsby/issues/1754
$ brew install vips --with-webp --with-graphicsmagick
$ rm -rf node_modules
$ yarn install