image: sharp error

{
"error": {
"message": "[500] [IPX_ERROR] \nSomething went wrong installing the \"sharp\" module\n\nModule did not self-register: '/node_modules/sharp/build/Release/sharp-linux-x64.node'.\n\nPossible solutions:\n- Using worker threads? See https://sharp.pixelplumbing.com/install#worker-threads\n- Install with verbose logging and look for errors: \"npm install --ignore-scripts=false --foreground-scripts --verbose sharp\"\n- Install for the current linux-x64 runtime: \"npm install --platform=linux --arch=x64 sharp\"\n- Consult the installation documentation: https://sharp.pixelplumbing.com/install"
}
}

i seem to get this error when using default ipx provider and when fetching images from external url… some images load some do not.

  image: {
   domains: ['https://cd3.example.com'],
   alias: { cdn3: 'https://cd3.example.com' }
 },

About this issue

  • Original URL
  • State: closed
  • Created 9 months ago
  • Comments: 15 (2 by maintainers)

Most upvoted comments

I hope to reopen this question. I am using node20x. After the build, the local png image part will have this problem, but the local svg and remote jpg will have no problem.

What fixed it for me was yarn add sharp --ignore-engines

seems now those are fixed as well… guess it was ipx caching problem all along. guess you can close this

this seems to be fixed after the latest ipx release but only for images from external domain… images from public folder are still sometimes not loaded in production