Sharp binaries for win32-x64 cannot be found
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
- Operating System:
Windows_NT - Node Version:
v22.17.1 - Nuxt Version:
4.0.2 - CLI Version:
3.27.0 - Nitro Version:
2.12.4 - Package Manager:
[email protected] - Builder:
- - User Config:
extends,experimental,modules,css,routeRules,robots,app,site,linkChecker,build,vue,turnstile,nuxtApiShield,schemaOrg,sitemap,runtimeConfig,vite,imports,ui,image,dayjs,prismic - Runtime Modules:
[email protected],@nuxtjs/[email protected],[email protected],@nuxt/[email protected],@nuxtjs/[email protected],@nuxt/[email protected],@nuxtjs/[email protected],@radya/[email protected],@nuxtjs/[email protected] - Build Modules:
-
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
Also getting the same warning on Ubuntu 22.04. Rolling back to 1.10.0 did fix it for me.
@dethdkn @bordermedia What did you downgrade?
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.
i also rolled back to 1.10
Rolling back to version 1.10.0 also fixed this issue. It appeared when I was running yarn prod.
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
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
yarnthough i've not tested
It works on me. Thanks! (Using pnpm)
Can confirm that:
"@nuxt/image": "2.0.0-alpha.1" with
"overrides": {
"sharp": "0.33.4",
}
worked for me!
Can confirm that:
"@nuxt/image": "2.0.0-alpha.1"with"overrides": { "sharp": "0.33.4", }worked for me!
thks!
@danielroe will this be fixed in 2.0? is there a release date for nuxt/image 2.0?
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
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"
}
}