joschan21 / digitalhippo

A Modern Fullstack E-Commerce Marketplace for Digital Products
3.33k stars 632 forks source link

Issue with the sharp module #11

Open Shriansh2002 opened 12 months ago

Shriansh2002 commented 12 months ago

Screenshot 2023-12-03 at 7 26 58 AM

peng-xiao-shuai commented 10 months ago

+1 same question

peng-xiao-shuai commented 10 months ago

屏幕截图 2023 年 12 月 3 日上午 7 点 26 分 58 秒

You can try changing your node version to 18.19.0. There are no Sharp issues in this release, but there are still new issues

Shriansh2002 commented 10 months ago

@peng-xiao-shuai can you reshare the image you attached, it is not visible. Thanks for the fix, I'll try this and try to implement it

peng-xiao-shuai commented 10 months ago

@peng-xiao-shuai can you reshare the image you attached, it is not visible. Thanks for the fix, I'll try this and try to implement it

My problem is that I failed to download the sharp module when installing it with yarn install

1704938075258

After the node version is switched to v18.19.0 and libvips is downloaded, yarn install succeeds

1704938278815 1704938542066

So I think that lowering the node version should solve the sharp problem, hopefully it will be useful for you

Shriansh2002 commented 10 months ago

Okay Thanks @peng-xiao-shuai ! ❤️

sait-efe commented 3 months ago

just try yarn add sharp that did it for me