Flutter 安装过程中遇到的问题
-
安装参考文档:https://flutterchina.club
-
Add the flutter tool to your path:
不知如何在mac中添加环境变量的解决方法参照https://jingyan.baidu.com/article/8065f87f47b29523312498e4.html -
git clone -b stable https://github.com/flutter/flutter.git时出现error提示:
error: RPC failed; result=56, HTTP code = 200iB | 3.00 KiB/s
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
百度了方法是增大缓存空间:git config --global http.postBuffer 524288000
但是增大缓存空间后再执行git clone时报了新错误:
fatal: unable to access ‘https://github.com/flutter/flutter.git/’: LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
本来一直不行后来发现晚上很迟的时候clone成功了,可能跟网速有关。后来发现更新Dart和Flutter插件也和网速有关。
成功的话,语句提示是这样的:
fuyinadembp:~ Mango$ git clone -b stable https://github.com/flutter/flutter.git
Cloning into ‘flutter’…
remote: Enumerating objects: 208999, done.
remote: Total 208999 (delta 0), reused 0 (delta 0), pack-reused 208999
Receiving objects: 100% (208999/208999), 82.58 MiB | 41.00 KiB/s, done.
Resolving deltas: 100% (159877/159877), done.
Checking connectivity… done.
本文记录了在Mac上安装Flutter时遇到的环境变量配置、HTTP错误56、SSL_ERROR_SYSCALL错误等问题,以及如何通过增大git缓存空间、选择合适网络条件解决这些问题,最终成功完成Flutter和Dart插件的安装。
1449

被折叠的 条评论
为什么被折叠?



