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 ‘