Error Loading Sharp Module in n8n Node on Linux: linuxmusl-x64 Runtime Issue

Describe the problem/error/question

I installed Sharp in my Docker container using:
RUN npm install -g sharp

However, when I try to use it in an n8n node, I keep getting the error:
Could not load the “sharp” module using the linuxmusl-x64 runtime

What is the error message (if any)?

Error: Could not load the "sharp" module using the linuxmusl-x64 runtime Possible solutions: - Ensure optional dependencies can be installed: npm install --include=optional sharp - Ensure your package manager supports multi-platform installation: See https://sharp.pixelplumbing.com/install#cross-platform - Add platform-specific dependencies: npm install --os=linux --libc=musl --cpu=x64 sharp - Consult the installation documentation: See https://sharp.pixelplumbing.com/install at Object.

Please share your workflow

Share the output returned by the last node

Could not load the “sharp” module using the linuxmusl-x64 runtime

Information on your n8n setup

  • n8n version: 1.115.3
  • Database (default: SQLite): SQLite
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: Linux Ubuntu
1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.