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

至此终于上传🎉成功🎉

相关推荐
Jerry1 小时前
构建 Compose 界面
android
Y多了个想法1 小时前
Linux驱动开发与Android驱动开发
android·linux·驱动开发
2501_916007474 小时前
从零开始学习iOS App开发:Xcode、Swift和发布到App Store完整教程
android·学习·ios·小程序·uni-app·iphone·xcode
姝然_95274 小时前
ConstraintLayout属性详解
android
2501_916008895 小时前
前端工具全景实战指南,从开发到调试的效率闭环
android·前端·小程序·https·uni-app·iphone·webview
浅影歌年6 小时前
Android和h5页面相互传参
android
用户69371750013846 小时前
搞懂 Kotlin 软关键字与硬关键字:灵活命名与语法陷阱全解析
android
下位子7 小时前
『OpenGL学习滤镜相机』- Day2: 渲染第一个三角形
android·opengl
风语者日志8 小时前
[LitCTF 2023]这是什么?SQL !注一下 !
android·数据库·sql
2501_915921438 小时前
iOS 26 CPU 使用率监控策略 多工具协同构建性能探索体系
android·ios·小程序·https·uni-app·iphone·webview