[英]I have installed the flutter and android studio but still getting the error zsh: command not found: flutter
I have installed the flutter and android studio but still getting the error我已经安装了 flutter 和 android studio 但仍然出现错误
tushar@racs-MacBook-Pro ~ % flutter doctor zsh: command not found: flutter tushar@racs-MacBook-Pro ~ % flutter 医生 zsh:找不到命令:flutter
i was trying to update the envirnmental variable on my macbook by using the "nano ~/.zshrc" command but after adding the same I am not able to run any flutter command on terminal我试图通过使用“nano ~/.zshrc”命令来更新我的 macbook 上的环境变量,但是在添加了相同的命令之后,我无法在终端上运行任何 flutter 命令
please help.请帮忙。
First, open the terminal on your mac.
Next, use the command
cat .bash_profile
and copy the content.
Then type this command into the terminal:
nano $ HOME / .zshrc
and paste the content just copied above into. Save then type
source $ HOME / .zshrc
to refresh this file. Next type
echo $ PATH
to see if the content has been updated. If successful type
flutter --version
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.