打开终端,第一步:sudo vi ~/.bash_profile
然后点i进行编写,加上:export PATH=${PATH}:flutterSDK地址/bin/cache/dart-sdk/bin
然后就是esc结束,com+;,:wq结束编写。
第二步:source ~/.bash_profile 更新文件。
第三步重启visual studio code 一定要重启。
打开终端,第一步:sudo vi ~/.bash_profile
然后点i进行编写,加上:export PATH=${PATH}:flutterSDK地址/bin/cache/dart-sdk/bin
然后就是esc结束,com+;,:wq结束编写。
第二步:source ~/.bash_profile 更新文件。
第三步重启visual studio code 一定要重启。
本文标题:visual studio code 运行报Dart文件运行 r
本文链接:https://www.haomeiwen.com/subject/otdpzhtx.html
网友评论