CNode

npm install sharp 报错

问答
Hhuge689发布于4 年前最后回复4 年前5 回复6284 浏览0 收藏

WechatIMG119.jpeg

查看回复

回复 (4)

C
chenkai0520#1·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

H
huge689#2·4 年前

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

L
liangtongzhuo#3·4 年前

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

D
DuJiming#4·4 年前

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

参与回复
登录后即可参与回复。登录