npm install sharp 报错
发布于 2 年前 作者 huge689 4619 次浏览 来自 问答

WechatIMG119.jpeg

4 回复
npm config set sharp_binary_host "https://npmmirror.com/mirrors/sharp"
npm config set sharp_libvips_binary_host "https://npmmirror.com/mirrors/sharp-libvips"
npm install sharp

https://sharp.pixelplumbing.com/install

我是mac系统,尝试了你给的方法,和官网文档描述的方式,不行啊,一样还是会报错

这个玩意是真的难装,我同事的文章 https://www.jianshu.com/p/02a7d52bf696

这东西对node版本匹配要求极高,贼恶心。。。

回到顶部