发布Package到Pub终端代理配置无效的解决方案

294 阅读1分钟

很多人都会出一种错误:

Waiting for your authorization...
Authorization received, processing... 
It looks like accounts.google.com is having some trouble. 
Pub will wait for a while before trying to connect again. 
OS Error: Operation timed out, errno = 60, address = 
accounts.google.com, port = 58913 pub finished with exit code 69

可能根据网上的解决方案,设置终端代理(http_proxy)等,发现始终还出现是一样的问题。

尤其是使用 idea 编辑器发布包的时候!

idea 的终端是 Windows PowerShell,而并不是 cmd,所以在 idea 的终端设置终端代理是无效的,

需要手动打开 cmd (win+r),进入到当前项目文件夹下,再进行终端代理配置,才能解决问题!