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 下载成功
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· Manus的开源复刻OpenManus初探
· AI 智能体引爆开源社区「GitHub 热点速览」
· 三行代码完成国际化适配,妙~啊~
· .NET Core 中如何实现缓存的预热?