yarn 失败

1、输入yarn后,下载失败报错

connect ETIMEDOUT 10.136.33.5:8081
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1141:16)
[1/4] Resolving packages...
[2/4] Fetching packages...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
error Error: connect ETIMEDOUT 10.136.33.5:8081
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1141:16)

2、检查淘宝镜像 yarn config list

3、设置淘宝镜像  yarn config set registry https://registry.npmmirror.com/

yarn config set registry https://registry.npmmirror.com/

4、yarn install还是失败

error Error: connect ETIMEDOUT 10.136.33.5:8081
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1141:16)
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

 5、取消SSL连接:yarn config set strict-ssl false

6、yarn 下载到一半还是失败

info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
error Error: https://registry.npmmirror.com/ant-design-vue/-/ant-design-vue-1.7.8.tgz: unexpected end of file
at Zlib.zlibOnError [as onerror] (zlib.js:180:17)
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

7、重新设置淘宝镜像  npm config set registry http://registry.npmjs.org(这一步应该没用。。。)

8、yarn  下载成功

 

posted @   紫花地丁year  阅读(268)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· Manus的开源复刻OpenManus初探
· AI 智能体引爆开源社区「GitHub 热点速览」
· 三行代码完成国际化适配,妙~啊~
· .NET Core 中如何实现缓存的预热?
点击右上角即可分享
微信分享提示