繁体   English   中英

我已经安装了 flutter 和 android studio 但仍然收到错误 zsh: command not found: flutter

[英]I have installed the flutter and android studio but still getting the error zsh: command not found: flutter

我已经安装了 flutter 和 android studio 但仍然出现错误

tushar@racs-MacBook-Pro ~ % flutter 医生 zsh:找不到命令:flutter

我试图通过使用“nano ~/.zshrc”命令来更新我的 macbook 上的环境变量,但是在添加了相同的命令之后,我无法在终端上运行任何 flutter 命令

请帮忙。

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM