hermes: command not found 怎麼解?
hermes: command not found 幾乎都是 shell 還沒重新載入 PATH:執行 source ~/.bashrc 或 source ~/.zshrc,或直接開新終端機;安裝器會把 ~/.local/bin 加進 PATH。
這頁適合誰:剛跑完安裝指令、第一次輸入 hermes 就報錯的人。
步驟
-
重新載入 shell 設定
bash 用戶載入 .bashrc,zsh 用戶(macOS 預設)載入 .zshrc。
source ~/.bashrc # 或 source ~/.zshrc -
或直接開新終端機視窗
新視窗會讀到安裝器更新後的 PATH。
-
還是不行就檢查 PATH
安裝器把執行檔加在 ~/.local/bin,確認它在 PATH 裡。
echo $PATH | tr ':' '\n' | grep local -
全面診斷
hermes doctor
完成後怎麼驗證
- 新終端機輸入 hermes 能進入對話介面
常見問題
我用 fish / 其他 shell?
官方 FAQ:Hermes 預設 source ~/.bashrc,其他 shell 要在 config.yaml 的 terminal.shell_init_files 加入你的初始化檔。
nvm、pyenv 裝的 node / python 也找不到?
同樣在 config.yaml 的 terminal.shell_init_files 加入 ~/.nvm/nvm.sh 等初始化檔。
相關頁
- Hermes Agent macOS 下載與安裝教學
- Hermes Agent Windows 下載與安裝教學(Desktop / PowerShell / WSL2)
- Hermes Agent Linux 下載與安裝教學
- Hermes Agent WSL2 完整安裝教學(Windows 使用者進階路線)
- Hermes Agent 模型供應商與 API key 設定教學
- OpenClaw 搬家到 Hermes Agent 完整教學(官方 hermes claw migrate)
- API key not set / API key 無效怎麼解?
- Hermes requires Python 3.11 or newer 怎麼解?
- context length exceeded 怎麼解?
- Telegram 接 Hermes Agent 常見坑與解法
- 官方 Issue 精選問答
- 學校解法卡