mainmatter.com icon indicating copy to clipboard operation
mainmatter.com copied to clipboard

Pin version of sharp to fix installation on Linux

Open lolmaus opened this issue 1 year ago • 2 comments

On Linux, pnpm i fails with:

sharp: Installation error: Request timed out

This is a known problem. According to an official recommendation, it is supposed to be fixed by upgrading to sharp 0.33 (we are on 0.32).

sharp is a dependency of @11ty/eleventy-img.

Tested build and dev locally.

lolmaus avatar Jan 18 '24 16:01 lolmaus

If it's a problem on Linux, why does it work on CI which runs Linux? I don't really know anything about this though – guess someone else would be better able to review this.

marcoow avatar Jan 18 '24 16:01 marcoow

If it's a problem on Linux, why does it work on CI which runs Linux?

I guess it could vary according to the platform Linux is running on, for example. I'm not familiar with sharp at all and I haven't dealt with npm build issues in a while (thank god), but skimming through the issue and the PR for the version update on the lib itself, this looks fine to me. Looks like it fixes networking problems when pulling in dependencies?

I'll defer to the ember/svelte folks, though

oliverbarnes avatar Jan 18 '24 17:01 oliverbarnes

this seems to work fine

marcoow avatar Jun 05 '24 09:06 marcoow