0
点赞
收藏
分享

微信扫一扫

mac flutter开发环境搭建 zsh: command not found: flutter解决方案

暮晨夜雪 2022-05-02 阅读 82

1、github下载flutter项目源码

博主下载到/Users/arthur/Documents/flutter/目录下,(arthur是我Mac的用户名)
在这里插入图片描述

2、配合环境变量,使用终端执行如下命令:

2.1、sudo vim ~/.bash_profile,打开 .bash_profile文件。
2.2、按i进入输入模式,在文件内容的末尾加入以下内容:

//flutter 目录
export PATH=/Users/arthur/Documents/flutter/bin:$PATH
举报

相关推荐

0 条评论