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

至此终于上传🎉成功🎉

相关推荐
夜晚中的人海1 小时前
【C++】智能指针介绍
android·java·c++
用户2018792831671 小时前
后台Activity输入分发超时ANR分析(无焦点窗口)
android
用户2018792831671 小时前
Activity配置变化后ViewModel 的 “不死之谜”
android
游戏开发爱好者82 小时前
BShare HTTPS 集成与排查实战,从 SDK 接入到 iOS 真机调试(bshare https、签名、回调、抓包)
android·ios·小程序·https·uni-app·iphone·webview
2501_916008892 小时前
iOS 26 系统流畅度实战指南|流畅体验检测|滑动顺畅对比
android·macos·ios·小程序·uni-app·cocoa·iphone
2501_915106324 小时前
苹果软件加固与 iOS App 混淆完整指南,IPA 文件加密、无源码混淆与代码保护实战
android·ios·小程序·https·uni-app·iphone·webview
2501_915921434 小时前
iOS 26 崩溃日志解析,新版系统下崩溃获取与诊断策略
android·ios·小程序·uni-app·cocoa·iphone·策略模式
齊家治國平天下6 小时前
Android 14 Input 事件派发机制深度剖析
android·input·hal
2501_916013747 小时前
iOS 推送开发完整指南,APNs 配置、证书申请、远程推送实现与上架调试经验分享
android·ios·小程序·https·uni-app·iphone·webview
李艺为9 小时前
非预置应用使用platform签名并且添加了android.uid.system无法adb安装解决方法
android·adb