Closed lekiq closed 10 months ago
Yeah, sharp isn't supported on some machines. Maybe check their repo for issues https://github.com/lovell/sharp/issues or I'd recommend using the no-sharp
branch https://github.com/astro-community/AstroCompress/tree/no-sharp if you're not using image compression. You can install it like so:
npm install -D -E astro-community/AstroCompress#no-sharp
I'll update it shortly to have the latest changes.
Or maybe I have to ship different versions depending on OS https://sharp.pixelplumbing.com/install#cross-platform I'll check into it further.
@lekiq did you try running
npm install --platform=darwin --arch=arm64v8 sharp
I am using a Macbook Pro with a M2 chip, and I am getting this issue when running
npm run dev