注意: 如果你使用的是zsh,終端啓動時 ~/.bash_profile 將不會被加載,解決辦法就是修改 ~/.zshrc ,在其中添加:source ~/.bash_profile

問題:Mac搭建Flutter環境環境是使用iTerm終端來操作,每次進入都要輸入source ~/.bash_profile 不然就找不到flutter doctor 解決:修改配置文件,後期重新打開都不需要重新輸入source ~/.bash_profile命令 終端運行:open ~/.zshrc 打開配置文件後,加入source ~/.bash_profile ,保存退出。就好了
相關文章
相關標籤/搜索