`sharp` install errors with Ubuntu 22.04 and Docker
peterklingelhofer opened this issue · 1 comments
peterklingelhofer commented
resonate-background | Something went wrong installing the "sharp" module
resonate-background |
resonate-background | Cannot find module '../build/Release/sharp-linuxmusl-x64.node'
resonate-background | Require stack:
resonate-background | - /var/www/api/node_modules/sharp/lib/sharp.js
resonate-background | - /var/www/api/node_modules/sharp/lib/constructor.js
resonate-background | - /var/www/api/node_modules/sharp/lib/index.js
resonate-background | - /var/www/api/src/jobs/optimize-image.js
resonate-background | - /var/www/api/src/jobs/queue-worker.js
resonate-background |
resonate-background | Possible solutions:
resonate-background | - Install with verbose logging and look for errors: "npm install --ignore-scripts=false --foreground-scripts --verbose sharp"
resonate-background | - Install for the current linuxmusl-x64 runtime: "npm install --platform=linuxmusl --arch=x64 sharp"
resonate-background | - Consult the installation documentation: https://sharp.pixelplumbing.com/install
peterklingelhofer commented
lovell/sharp#3157 this solution fixed it for me, specifically:
sudo apt-get install ubuntu-restricted-extras