npm install sharp 报错
 发布于 3 年前  作者 huge689  5903 次预览  最后一次回复是 3 年前  来自 问答 

WechatIMG119.jpeg

5 回复
chenkai0520
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

huge689

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

liangtongzhuo

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

DuJiming

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