(SOLVED)运行flutter doctor时出错或者长时间无响应
条评论文章目录
问题:运行 flutter doctor
时出错或者长时间无响应
在命令行中,pub 支持 http_proxy
和 https_proxy
环境变量。您可以按如下方式设置代理服务器环境变量。
On Linux/macOS:
1 | export https_proxy=hostname:port |
On Windows Command Prompt:
1 | set https_proxy=hostname:port |
On Windows PowerShell:
1 | $Env:https_proxy="hostname:port" |
If the proxy requires credentials, you can set them as follows.
On Linux/macOS:
1 | export https_proxy=username:password@hostname:port |
On Windows Command Prompt:
1 | set https_proxy=username:password@hostname:port |
On Windows PowerShell:
1 | $Env:https_proxy="username:password@hostname:port" |
Reference
Difficulty getting error when running flutter doctor
Pub get fails from behind a corporate firewall
本文标题:(SOLVED)运行flutter doctor时出错或者长时间无响应
文章作者:xmaihh
发布时间:2020-04-27
最后更新:2020-04-27
版权声明:采用[CC BY-NC-SA 4.0许可协议]进行许可
分享