#[solved] MissingSharp: Could not find Sharp. Please install Sharp (`sharp`) manually

9 messages · Page 1 of 1 (latest)

pale vortex
#

Hi everyone,
suddenly my Astro projects cannot find "sharp" anymore. It seems since the new release of Astro it does not work anymore.
I am using Yarn, Node v21.1.0. An "older" project I set up 3 Weeks ago is using Astro 4.11.0 and everything works just fine. Now with Astro 4.11.5 sharp is not found. Manually installing does not work, and I also do get a warning [email protected]: The engine "pnpm" appears to be invalid. and [email protected]: The engine "libvips" appears to be invalid. I am not using pnpm. Anyone has some ideas how to fix this?

scarlet rune
#

What version of Yarn are you using?

pale vortex
#

Hi, I am using Yarn version 1.22.22

scarlet rune
#

Try yarn add sharp --ignore-engines

#

My main recommendation would be to either not use Yarn, or use a modern version of Yarn

pale vortex
#

I see, I guess yarn is the problem then 😅 Thanks for the hint! I will research in some other package manager. seems like pnpm is the way to go?

scarlet rune
#

pnpm is quite liked around these parts for sure, but if you do enjoy using Yarn feel free to keep using it, I'd just recommend using Yarn 4 instead of 1

pale vortex
#

yeeeah... did not realise that my version is so outdated haha 🫣
tried pnpm now and the images work perfectly fine! Thanks for the help! 🌸