引入
2019 5月份
flutter 更新了flutter1.5.4
這次更新帶來了preview的web
然後卡在了Install the flutter_web build tools
CMD提示
+ webdev 2.0.4
+ webkit_inspection_protocol 0.4.0
+ yaml 2.1.15
Downloading webdev 2.0.4...
Downloading webkit_inspection_protocol 0.4.0...
Downloading shelf_static 0.2.8...
Downloading pubspec_parse 0.1.4...
Downloading crypto 2.0.6...
但是沒速度
解決方案
配置Pub 鏡像
不得不使用Pub(Dart的包管理工具)
這裏使用清華鏡像
具體配置指令
因爲在Windows環境直接執行下面指令,重啓CMD
setx /M PUB_HOSTED_URL https://mirrors.tuna.tsinghua.edu.cn/dart-pub/
演示結果
Downloading package_config 1.0.5...
Downloading intl 0.15.8...
Downloading mime 0.9.6+2...
Downloading source_maps 0.10.8...
Downloading quiver 2.0.3...
Downloading matcher 0.12.5...
Precompiling executables...
Precompiled webdev:bin\webdev.
Activated webdev 2.0.4.