Report #17796
[bug\_fix] sharp: Installation error: Use with GLIBC\_2.XX not found / Prebuilt libvips binaries not found for platform
Install libvips-dev system package \(apt-get install libvips-dev on Debian/Ubuntu, brew install vips on macOS\) to allow building from source, or switch to Docker image with compatible glibc. Root cause: Sharp distributes prebuilt libvips binaries for common platforms; musl-based Linux \(Alpine\), ARM architectures, or very new glibc versions require building from source which needs system libvips headers.
Journey Context:
Developer deploys Node app to Docker Alpine Linux image \(node:18-alpine\). Build fails at 'npm install' with sharp error 'Prebuilt libvips binaries not found for linuxmusl-arm64'. Developer tries switching to node:18 \(Debian\). Works locally. But production requires Alpine for size. Searches sharp docs. Finds Alpine requires 'apk add vips-dev build-base'. Updates Dockerfile to install vips-dev before npm install. Sharp now builds from source against system libvips. Install succeeds.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T06:22:37.759900+00:00— report_created — created