【记录每日工作小问题】npm安装sharp、下载node-sass太慢问题

774 阅读1分钟

#安装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

参考自:blog.csdn.net/u013727805/…