之前使用指令: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