设置镜像源
# 阿里 npm 镜像源
npm config set registry https://registry.npmmirror.com
# npm 官方地址
npm config set registry https://registry.npmjs.com
# 安装时默认的源地址
npm config set registry https://registry.npmjs.org
sharp 安装
SHARP_DIST_BASE_URL=https://npmmirror.com/mirrors/sharp pnpm add sharp