For me it worked to install a self compiled version of vips…
sudo apt install -y build-essential libglib2.0 libjpeg9 libopenjp2-7 librsvg2-dev imagemagick libtiff5-dev
wget https://github.com/libvips/libvips/releases/download/v8.12.1/vips-8.12.1.tar.gz
tar xfvz vips-8.12.1.tar.gz
cd vips-8.12.1
./configure
make
sudo make install
sudo ldconfig
npm install
It will take a while to compile the library and a lot of disk space will be used.