在macOS Catalina上设置Flutter

时间:2020-02-22 19:23:30

标签: flutter

我在Mac上安装flutter时遇到问题,首先选择zsh作为默认shell,然后键入vim .zprofile以添加导出路径=“ =” PATH:/ Users / mahmood / flutter / bin“ < / p>

echo $ PATH ///我得到以下结果:

/ usr / local / bin:/ usr / bin:/ bin:/ usr / sbin:/ sbin:/ Library / Apple / usr / bin:/ Library / Apple / bin:/ usr / local / share / dotnet :/Library/Frameworks/Mono.framework/Versions/Current/Commands:/用户/ mahmood / flutter / bin:/ Users / mahmood / dev / flutter / bin

扑扑//

/ Users / mahmood / flutter / bin / flutter

但是如果我输入flutter --version / Users / mahmood / flutter / bin / flutter:第183行:/ Users / mahmood / flutter / bin / cache / dart-sdk / bin / dart:没有此类文件或目录。

请问如何解决这个问题。

0 个答案:

没有答案