flutter安装 for mac

第1步,合适位置,命令行拉取flutter源码

git clone -b beta https://github.com/flutter/flutter.git

示例:


image.png

第2步,配置环境变量

vim ~/.bash_profile

增加一行

//安装目录/flutter/bin
export PATH=`pwd`/flutter/bin:$PATH

刷新

source ~/.bash_profile

示例:


image.png

image.png

第3步,安装flutter到电脑

flutter doctor

示例:


image.png

image.png

你可能感兴趣的:(flutter安装 for mac)