zsh: command not found問題解決

出現這個問題,一種的path路徑不對,路徑不對,修改路徑;路徑修改傳送門:zsh: command not found解決方法:配置環境變量
另一種原因可能是沒有該命令的相關安裝包:
沒有安裝包時,採用brew命令安裝.

如安裝wget

brew install wget

ps:
如果brew安裝出現以下錯誤:

Updating Homebrew...
Error: No available formula with the name "service"
==> Searching for a previously deleted formula (in the last month)...
Warning: homebrew/core is shallow clone. To get complete history run:
  git -C "$(brew --repo homebrew/core)" fetch --unshallow

Error: No previously deleted formula found.
==> Searching for similarly named formulae...
These similarly named formulae were found:
gst-editing-services                                              kubernetes-service-catalog-client
To install one of them, run (for example):
  brew install gst-editing-services
==> Searching taps...
==> Searching taps on GitHub...
Error: No formulae found in taps.

可採用以下方法嘗試:

rm -rf /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core; brew update
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章