expo项目使用eas打包安卓上传时connect ETIMEDOUT和write EPIPE问题

之前使用指令:eas build -p android

上传安卓包都是顺利进行的

但是今天却报错:

Failed to upload the project tarball to EAS Build

Reason: request to https://storage.googleapis.com/. . . . . failed, reason: connect ETIMEDOUT 142.251.42.251:443

ping 142.251.42.251后发现ping不通,也尝试了重启电脑和切换网络等一系列操作后,终于ping成功了,但是报错变成了:

Failed to upload the project tarball to EAS Build

Reason: request to https://storage.googleapis.com/. . . . failed, reason: write EPIPE

当时一直报这些错给我搞毛了,感觉可能是工具环境或者是版本问题,索性直接卸载重新安装所有的工具,因为当时用yarn安装的eas:

复制代码
yarn安装的卸载如下:
1、yarn global remove eas-cli
2、yarn global remove expo-cli

npm安装的卸载如下:
1、npm uninstall -g expo-cli
2、npm uninstall -g eas-cli

-------------------------------------------------------------------------------------------------------------------------------------------------------


3、删除相关文件:
Windows:
	rmdir /s /q %USERPROFILE%\.expo\eas
	rmdir /s /q %USERPROFILE%\.expo\android
macOS:
	rm -rf ~/.expo/eas
	rm -rf ~/.expo/android
	
yarn global add expo-cli
yarn global add eas-cli 时报错:
error graphql@16.8.1: The engine "node" is incompatible with this module. Expected version "^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0". Got "14.15.2"
error Found incompatible module.

感觉低版本的node可能还会有问题,直接来一个>=17.0.0的版本算了,切了v18.1.0,重新执行该指令成功

eas login

eas build -p android

至此终于上传🎉成功🎉

相关推荐
流星白龙5 小时前
【MySQL】7.MySQL基本查询(2)
android·mysql·adb
mldlds6 小时前
MySQL加减间隔时间函数DATE_ADD和DATE_SUB的详解
android·数据库·mysql
智算菩萨8 小时前
MP3音频编码原理深度解析与Python全参数调优实战:从心理声学模型到LAME编码器精细控制
android·python·音视频
studyForMokey9 小时前
【Android面试】Activity生命周期专题
android·面试·职场和发展
chehaoman10 小时前
MySQL的索引
android·数据库·mysql
恋猫de小郭13 小时前
React Native 鸿蒙 2026 路线发布,为什么它的适配成本那么高?
android·前端·react native
studyForMokey13 小时前
【Android面试】窗口机制专题
android·面试·职场和发展
用户0132014360314 小时前
Android 资源管理与常用布局详解|基础入门
android
陆业聪15 小时前
从 OpenClaw 到 Android:Harness Engineering 是怎么让 Agent 变得可用的
android·人工智能·ai编程
stevenzqzq17 小时前
颜色透明度转换技术文档(Android/Compose)
android