First of all, I have been working with Flutter for more than 3 years, and am a reasonably seasoned dev. Yet this baffles me, and I can’t find a solution online.
Since this morning, I systematically get this error while running flutter pub get ou flutter doctor
pub get failed (server unavailable) -- attempting retry 1 in 1 second... Got socket error trying to find package node_preamble at https://pub.dartlang.org
I am on Big Sur 11.2.2
I wiped the Flutter sdk dir, reinstalled from the official site (latest stable), wiped the .pub-cache and removed a stand-alone dart install. Rebooted several times. Yet, I still get the problem on the first ‘Flutter doctor’
I also manually installed the node_preamble packages, without result.
Here and there, I find mentions of a problem with proxies but I have none and reproduced the issue using my phone’s 4g connection. I also deactivated the antivirus and went as far as using a VPN to try France and USA (I am based in Belgium).
Am I the only one ? Do you have any clue?
I would love to supply a Flutter doctor, but I can’t. And I am badly stuck now :/
Thanks