【发布时间】:2019-02-01 05:24:25
【问题描述】:
我一直在关注this address 的教程,但在我完成并成功运行echo $PATH 后似乎仍然无法运行flutter doctor
我能想到的唯一原因是因为我最初可能需要将我的目录更改为颤振文件夹,而不是用户文件夹,但我怀疑这会产生什么真正的不同。
我已经联系了本教程的作者,他说另一位用户觉得这很有帮助;
I managed to solve it myself after I began looking into 'fish'. Apparently I had to declare the path in "~/.config/fish/config.fish" rather than "~/.bash_profile" and then of course run "source ~/.config/fish/config.fish" rather than "source ~/.bash_profile"
这就是我的终端的样子;
MacBook-Air:~ jake$ cd /users/jake/
MacBook-Air:jake jake$ touch .bash_profile
MacBook-Air:jake jake$ source $HOME/.bash_profile
MacBook-Air:jake jake$ echo $PATH
/flutter/bin:/flutter/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/jake/.composer/vendor/bin:/Users /jake/.composer/vendor/bin
MacBook-Air:jake jake$ flutter doctor
-bash: flutter: command not found
非常感谢,杰克
【问题讨论】:
-
flutter 在你的机器中位于哪里?..(在我的机器中,它在
~/Downloads/flutter) -
我的位于 ~Users/Jake/flutter
标签: macos terminal visual-studio-code dart flutter