yarn (npm)报错 connect ETIMEDOUT

1,461 阅读1分钟

错误信息

Output: ‼ connect ETIMEDOUT 185.199.108.133:443 ‼ pngquant pre-build test failed i compiling from source × Error: pngquant failed to build, make sure that libpng-dev is installed

解决办法

npm config set registry registry.npm.taobao.org/ 或 nrm 添加源 在使用源