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

至此终于上传🎉成功🎉

相关推荐
用户20187928316711 分钟前
Binder 同应用内(本地)通信是否存在 1MB 大小限制?
android
一条上岸小咸鱼26 分钟前
Kotlin 基本数据类型(四):String
android·前端·kotlin
Onion_991 小时前
学习下Github上的Android CICD吧
android·github
来来走走2 小时前
Flutter Form组件的基本使用
android·flutter
顾林海2 小时前
Android MMKV 深度解析:原理、实践与源码剖析
android·面试·源码阅读
雨白3 小时前
TCP/IP 核心概念详解:从网络分层到连接管理
android
Wgllss4 小时前
雷电雨效果:Kotlin+Compose+协程+Flow 实现天气UI
android·架构·android jetpack
用户207038619496 小时前
Compose 可点击文本:ClickableText Compose 中的 ClickableSpan
android
常利兵6 小时前
Kotlin作用域函数全解:run/with/apply/let/also与this/it的魔法对决
android·开发语言·kotlin
幼稚园的山代王6 小时前
Kotlin-基础语法练习一
android·开发语言·kotlin