oscar

fatal error: 'vips/vips8' file not found

On 24/09/19 there was the following issue when installing some projects using yarn.

error /Users/oscar/dev/project/node_modules/sharp: Command failed.
Exit code: 1
Command: (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)
Arguments:

...

  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.

The fix is to add this to your package.json

  "resolutions": {
    "minipass": "2.7.0"
  },

It appears to have something to do with this commit.