[英]Flutter Doctor; command not found
使用 macOS 文檔安裝 Flutter。 我輸入了以下命令:
$ unzip ~/Downloads/flutter_macos_v1.9.1+hotfix.6-stable.zip
$ export PATH="$PATH:'pwd'/flutter/bin"
然后嘗試
$ flutter doctor
,按照指示,未找到 get 命令
(在嘗試“ flutter precache
”時也找不到命令)
做這個
vi ~/.zshrc
然后
export PATH="$PATH:/yourpath_to_/flutter/bin"
之后保存 doc pres esc + : + !
在那之后
source ~/.zshrc
添加以下行並更改 "pwd" :
export PATH="$PATH:'pwd'/flutter/bin"
成為你克隆 Flutter 的 git repo 的路徑
我通過以下步驟解決了這個問題:
pwd
此命令將為您提供一個路徑。 復制那個路徑export PATH="$PATH:<YOUR COPIED PATH>/bin"
flutter doctor
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.