I tried everything.
- Removed
node_modules
andyarn.lock
- Downgraded sharp-plugins
- apt installed libvips && libvips-dev
- $ npm install -g node-gyp
Before installing libvips-dev. The build error was caused because libvips wasn't found. Now after apt-get installing libvips-dev, glib-object is not found. I don't know what to do.
Here is the useful bit of the error message:
make: Entering directory '/home/me/Desktop/project/node_modules/sharp/build'
TOUCH Release/obj.target/libvips-cpp.stamp
CXX(target) Release/obj.target/sharp/src/common.o
In file included from ../src/common.cc:25:
/usr/include/vips/vips8:35:10: fatal error: glib-object.h: No such file or directory
#include <glib-object.h>
Any help?