mainmatter.com
mainmatter.com copied to clipboard
Pin version of sharp to fix installation on Linux
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.
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.
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
this seems to work fine