X

使用sharp chinese mirror

2022/5/23

最近安装svelte kit时候 报错

sharp: Installation error: read ECONNRESET

原因:安装的依赖被墙

解决方法,使用镜像:

执行:

notepad %USERPROFILE%/.npmrc

修改内容 添加:

sharp_binary_host="https://npmmirror.com/mirrors/sharp"
sharp_libvips_binary_host="https://npmmirror.com/mirrors/sharp-libvips"

参考:

Sharp-Installation: Chinese mirror

Commit