Windows安装Hermes
2026-04-24 05:32:48
一、启用 WSL 环境:以管理员身份打开 PowerShell 或 Windows Terminal,执行以下命令来启用 WSL 和虚拟机平台功能
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart二、安装Ubuntu虚拟机到E盘或其他盘符:
wsl --install -d Ubuntu --location D:\WSL
三、指定APT为国内安装源:
sudo nano /etc/apt/sources.list.d/ubuntu.sources替换:URIs: http://mirrors.aliyun.com/ubuntu/
URIs: http://mirrors.aliyun.com/ubuntu/
四、安装git、nvm、npm、node.js
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.4/install.sh | bash
\. "$HOME/.nvm/nvm.sh"
nvm install 22
nvm use 22
验证安装结果:
git -v
npm -v
node -v五、将npm源切换为国内:
npm config set registry https://registry.npmmirror.com
六、开始安装Hermse,不进行默认安装配置向导:
curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash -s -- --skip-setup
~/.baserh
七、开始配置Hermse,并连接本地模型,QQ机器人:
hermes setup