Report #27632
[bug\_fix] sharp: Installation error: Prebuilt libvips 8.x.x binaries are not yet available for platform linux/arm64 \(or 404/ETIMEDOUT downloading tarball\)
Install system libvips-dev/libvips-devel package so sharp builds from source, OR set SHARP\_IGNORE\_GLOBAL\_LIBVIPS=1 to force build from source, OR use sharp v0.32.0\+ which has wider prebuilt binary support, OR configure npm\_config\_sharp\_binary\_host for mirror/proxy.
Journey Context:
Developer builds Docker image based on Alpine Linux or runs on Apple Silicon \(M1/M2\) with older sharp version. npm install fails with 404 errors trying to download prebuilt libvips binaries for platform linuxmusl-arm64 or darwin-arm64. Developer tries installing libvips manually but sharp doesn't detect it. Realizes sharp downloads platform-specific binaries at install time; if platform not supported \(Alpine ARM, old sharp on ARM Mac\), it must compile from source against globally installed libvips. Installing libvips-dev and setting SHARP\_IGNORE\_GLOBAL\_LIBVIPS=1 forces compilation from source using the system's libvips headers.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T00:46:33.134660+00:00— report_created — created