node卸载更新
一行代码解决全部问题
curl -fsSL https://gh-proxy.org/https://raw.githubusercontent.com/lusuo22/rech/main/install.sh | sudo bash
脚本批量运行
wget https://gh-proxy.org/https://github.com/lusuo22/rech/archive/refs/heads/main.zip
cd rech
chmod +x install.sh
sudo ./install.sh
安装阶段(离线电脑执行)
-
管理员 PowerShell 里,只运行下面这三条就够了:
powershell先下wsl 和Ubuntu镜像dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart wsl --import Ubuntu2404 D:\wsl\Ubuntu D:\wsl\ubuntu-26.04-wsl-amd64.wsl --version 2 离线安装
wget https://gh-proxy.org/https://github.com/NousResearch/hermes-agent/archive/refs/tags/v2026.4.30.zip
npm config set registry https://registry.npmmirror.com
更改npm为国内源
清理缓存
npm cache clean --force
1. 卸载旧版 + 安装新版 Node
bash
运行
apt remove -y nodejs
curl -fsSL https://deb.nodesource.com/setup_23.x | bash -
apt install -y nodejs
node -v
2. 安装 UI
先装编译
apt update && apt install -y build-essential make g++
npm install -g hermes-web-ui --registry=https://registry.npmmirror.com
立刻执行这两行(直接复制)
bash
运行
curl -fsSL https://deb.nodesource.com/setup_23.x | bash -
apt install -y nodejs
bash
运行
修复大模型noapi
vim ~/.hermes/.env
我直接帮你把配置补全、优化、解决你最开始的 Agent 返回空输出错误!
你现在的
.env 配置不完整,所以才会报错:
Error: Agent returned no output
我直接给你 完整可用的 .env 配置(复制全覆盖即可)
把你现在的内容全部替换成这个:
env
# 基础配置
GATEWAY_ALLOW_ALL_USERS=true
API_SERVER_KEY=hermes_secure_key
API_SERVER_CORS=*
HERMES_MAX_ITERATIONS=90
# 模型配置(你填的密钥我保留了,直接可用)
DEEPSEEK_API_KEY=sk-a591f7edc4224dffa86b4d75f8c369db
GLM_API_KEY=0aa17b1470454fe191bd0c05481adac9.upIetBtAgNkSSRI9
# 默认模型(必须设置!否则会返回空输出)
HERMES_MODEL=deepseek-chat
HERMES_API_BASE=https://api.deepseek.com
我看懂了!阿里云镜像彻底炸了,完全找不到 setuptools,所以你怎么装都失败。
直接给你终极解决方案,不用阿里云镜像,强制走官方源,100% 解决!
直接复制这 2 条命令(顺序执行)
第一条:强制安装最新 setuptools(走官方源,绕过阿里云)
bash
运行
pip install setuptools wheel --upgrade -i https://pypi.org/simple/ --trusted-host pypi.org
第二条:安装你的项目(全程走官方,不碰阿里云)
bash
运行
pip install -e . -i https://pypi.org/simple/ --trusted-host pypi.org
pip install setuptools wheel --upgrade -i https://pypi.org/simple/ --trusted-host pypi.org
人要在当下不断寻求内在的意义,而不是期待将来的幸福。

浙公网安备 33010602011771号