#安装sharp
npm install sharp
安装过程实在过于缓慢,可以设置镜像源,提高速度
依次执行命令:
npm config set sharp_binary_host "https://npm.taobao.org/mirrors/sharp"
npm config set sharp_libvips_binary_host "https://npm.taobao.org/mirrors/sharp-libvips"
npm install sharp
npm install sharp
安装过程实在过于缓慢,可以设置镜像源,提高速度
依次执行命令:
npm config set sharp_binary_host "https://npm.taobao.org/mirrors/sharp"
npm config set sharp_libvips_binary_host "https://npm.taobao.org/mirrors/sharp-libvips"
npm install sharp