image icon indicating copy to clipboard operation
image copied to clipboard

Sharp binaries for win32-x64 cannot be found

Open simonmaass opened this issue 4 months ago • 15 comments

Error:

WARN sharp binaries for win32-x64 cannot be found. Please report this as a bug with a reproduction at https://github.com/nuxt/image. @nuxt/image 17:48:07

Image

simonmaass avatar Jul 30 '25 15:07 simonmaass

Im also getting this warn building on both macos and linux.

WARN  sharp binaries for darwin-arm64 cannot be found. Please report this as a bug with a reproduction at https://github.com/nuxt/image.
WARN  sharp binaries for linux-x64 cannot be found. Please report this as a bug with a reproduction at https://github.com/nuxt/image.

Even after downgrading to 1.10.0 the warn still appears

dethdkn avatar Jul 30 '25 17:07 dethdkn

Also getting the same warning on Ubuntu 22.04. Rolling back to 1.10.0 did fix it for me.

bordermedia avatar Jul 31 '25 07:07 bordermedia

@dethdkn @bordermedia What did you downgrade?

aidinio avatar Aug 11 '25 08:08 aidinio

@dethdkn @bordermedia What did you downgrade?

nuxt-image ?

GlazGo31 avatar Aug 11 '25 11:08 GlazGo31

@dethdkn @bordermedia What did you downgrade?

@nuxt/image

dethdkn avatar Aug 11 '25 12:08 dethdkn

Im also getting this warn building on both macos m3 v.1.11.0

WARN sharp binaries for darwin-arm64 cannot be found. Please report this as a bug with a reproduction at https://github.com/nuxt/image.

Rolling back to v.1.10.0 did fix it for me too.

alexkramse avatar Aug 12 '25 07:08 alexkramse

i also rolled back to 1.10

simonmaass avatar Aug 12 '25 08:08 simonmaass

Rolling back to version 1.10.0 also fixed this issue. It appeared when I was running yarn prod.

klivak avatar Aug 12 '25 10:08 klivak

If you're using pnpm you will need to add an override for the sharp package, https://github.com/nuxt/image/issues/1871

"pnpm": {
    "overrides": {
      "sharp": "0.33.4"
    },
  },

The same might be true for yarn though i've not tested

n-rowe avatar Aug 13 '25 15:08 n-rowe

If you're using pnpm you will need to add an override for the sharp package, #1871

"pnpm": { "overrides": { "sharp": "0.33.4" }, }, The same might be true for yarn though i've not tested

It works on me. Thanks! (Using pnpm)

CloudeaSoft avatar Aug 14 '25 03:08 CloudeaSoft

Can confirm that: "@nuxt/image": "2.0.0-alpha.1" with

"overrides": {
  "sharp": "0.33.4",
}

worked for me!

nathanchase avatar Aug 31 '25 13:08 nathanchase

Can confirm that: "@nuxt/image": "2.0.0-alpha.1" with

"overrides": {
  "sharp": "0.33.4",
}

worked for me!

thks!

andrescellini avatar Sep 04 '25 22:09 andrescellini

@danielroe will this be fixed in 2.0? is there a release date for nuxt/image 2.0?

simonmaass avatar Oct 06 '25 12:10 simonmaass

I fixed it myself by overriding them in the package.json (i use yarn)

  "dependencies": {
    "@nuxt/image": "^1.10.0",
    ...
  },
  "resolutions": {
    "**/sharp": "0.34.4"
  },

Here you can find more information about the resolutions: https://github.com/yarnpkg/rfcs/blob/master/implemented/0000-selective-versions-resolutions.md

SaiCode-DEV avatar Oct 21 '25 13:10 SaiCode-DEV

i still get this error in v2:

{
"error": {
"message": "[500] [IPX_ERROR] Could not load the \"sharp\" module using the linux-x64 runtime\nERR_DLOPEN_FAILED: libvips-cpp.so.42: cannot open shared object file: No such file or directory\nPossible solutions:\n- Ensure optional dependencies can be installed:\n    npm install --include=optional sharp\n- Ensure your package manager supports multi-platform installation:\n    See https://sharp.pixelplumbing.com/install#cross-platform\n- Add platform-specific dependencies:\n    npm install --os=linux --cpu=x64 sharp\n- Consult the installation documentation:\n    See https://sharp.pixelplumbing.com/install"
}
}

simonmaass avatar Dec 04 '25 15:12 simonmaass