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 [email protected]: 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

至此终于上传🎉成功🎉

相关推荐
后端码匠6 小时前
MySQL 8.0安装(压缩包方式)
android·mysql·adb
梓仁沐白7 小时前
Android清单文件
android
董可伦9 小时前
Dinky 安装部署并配置提交 Flink Yarn 任务
android·adb·flink
每次的天空10 小时前
Android学习总结之Glide自定义三级缓存(面试篇)
android·学习·glide
恋猫de小郭10 小时前
如何查看项目是否支持最新 Android 16K Page Size 一文汇总
android·开发语言·javascript·kotlin
flying robot12 小时前
小结:Android系统架构
android·系统架构
xiaogai_gai12 小时前
有效的聚水潭数据集成到MySQL案例
android·数据库·mysql
鹅鹅鹅呢13 小时前
mysql 登录报错:ERROR 1045(28000):Access denied for user ‘root‘@‘localhost‘ (using password Yes)
android·数据库·mysql
在人间负债^13 小时前
假装自己是个小白 ---- 重新认识MySQL
android·数据库·mysql
Unity官方开发者社区13 小时前
Android App View——团结引擎车机版实现安卓应用原生嵌入 3D 开发场景
android·3d·团结引擎1.5·团结引擎车机版