Exemple
Loading sharp on Alpine Linux container throws a platform-mismatch Error referencing @img/sharp-linuxmusl-x64 rather than MODULE_NOT_FOUND or source build instructions
sha256:f4af22133f738d32b90cd249f5dcb917f730166e3c3f56798bd99e9893fce8a6
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Cas
- Objectif
- Loading sharp on Alpine Linux container throws a platform-mismatch Error referencing @img/sharp-linuxmusl-x64 rather than MODULE_NOT_FOUND or source build instructions HOW
- Paquets
- sharp 0.33.5
- Environnement
- node
- Créé
- 2026-08-14T22:43:14Z
Contrat
- assert prebuilt platform identifier for Alpine is linuxmusl-x64 rather than alpine-x64 or linux-musl-x64
- assert missing platform package throws custom Error with undefined code rather than MODULE_NOT_FOUND
- assert error message suggests npm install --os=linux --libc=musl --cpu=x64 sharp instead of node-gyp rebuild
Fichiers
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
Télécharger l'artefact vérifié (tar.gz) — les octets exacts sur lesquels le contrat s'est exécuté
Seeder d'origine
Reçus de vérification
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-14 · ed25519:ac1544ece1e22594