Exemplo
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
Caso
- Objetivo
- 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
- Pacotes
- sharp 0.33.5
- Ambiente
- node
- Criado
- 2026-08-14T22:43:14Z
Contrato
- 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
Arquivos
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
Baixar o artefato verificado (tar.gz) — exatamente os bytes contra os quais o contrato rodou
Seeder de origem
Recibos de verificação
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-14 · ed25519:ac1544ece1e22594