From @anubhaavofficial on February 7, 2018 4:19
When using Flutter Doctor command, I am getting the error (Look at the screenshot.). When I changed the Environment variables to
then the ‘pub’ command is working fine and I am able to install flutter correctly.
I am in India, from last 2-3 Weeks this issue persists, and I am not able to install pub packages from default server.
Error: When using default server settings.
Success: When Using China Mirror
Copied from original issue: dart-lang/pub-dev#966