0
点赞
收藏
分享

微信扫一扫

Dart Mac安装了flutter但是提示 Dart command not found

配药配置全部路径:

1、打开终端输入以下指令,需输入密码

sudo vi ~/.bash_profile

2、点击i进入可编辑模式

3、在下图的位置添加以下指令

export PATH=${PATH}:/Users/yaosumac/flutter/bin/cache/dart-sdk/bin

Dart Mac安装了flutter但是提示 Dart command not found_bash

 

 4、点击ESC键,然后输入:wq,保存退出

 5、刷新.bash_profile文件,输入以下指令

source ~/.bash_profile

最后检查dart命令:

dart --version

如下图:

Dart Mac安装了flutter但是提示 Dart command not found_可编辑_02

 

 然后就可以了:

Dart Mac安装了flutter但是提示 Dart command not found_flutter_03

 


举报

相关推荐

0 条评论