Environment
- OS: Windows 10/11
- Hermes version: v0.19.0 (2026.7.20) — install method: git
- Python: 3.11.15
- Node.js: v24.13.0
- Install directory:
C:\Users\<user>\AppData\Local\hermes\hermes-agent
Description
After a previous incomplete update (likely interrupted or crashed), running hermes update fails at the Building desktop app stage with multiple cascading errors. The desktop app also refuses to launch, showing "UPDATE DIDN'T FINISH — Could not find the hermes CLI".
Issues #39185, #45860, and #48854 are reportedly fixed, but this scenario still reproduces on v0.19.0.
Steps to Reproduce
- Install Hermes Agent v0.19.0 via git
- A previous
hermes update or hermes desktop is interrupted (power loss, Ctrl+C, crash, etc.)
- Run
hermes update again
- Observe failures at "Building desktop app" stage
Actual Behavior
Error 1: npm ci fails with ENOTEMPTY
npm error code ENOTEMPTY
npm error syscall rmdir
npm error path C:\Users\<user>\AppData\Local\hermes\hermes-agent\node_modules\@babel\core\node_modules\.bin
npm error errno -4051
npm error ENOTEMPTY: directory not empty, rmdir
npm ci fails because a previous incomplete install left corrupted node_modules. The retry with npm install also fails or hangs.
Error 2: Playwright Chromium not installed
'playwright' is not recognized as an internal or external command
[!] Playwright Chromium install failed -- exit code 1
Because npm install for desktop workspace failed, npx playwright install chromium cannot run.
Error 3: hermes.exe missing from venv/Scripts/
The desktop app shows:
UPDATE DIDN'T FINISH
Could not find the hermes CLI under C:\Users\<user>\AppData\Local\hermes\hermes-agent.
Is Hermes installed? Re-run the installer to repair the install.
After checking venv/Scripts/, only hermes-agent.exe and hermes-acp.exe exist — hermes.exe is gone.
Error 4: Desktop updater hangs
Clicking "Retry update" in the desktop UI either hangs indefinitely or fails with "another Hermes process is using this installation" even after closing the app and restarting Windows.
Manual Fix Required
The following manual steps were needed to recover:
# 1. Kill all node/electron processes
Get-Process | Where-Object { $_.ProcessName -match 'electron|node|npm' } | Stop-Process -Force
# 2. Delete corrupted node_modules
cmd /c "rmdir /s /q ""C:\Users\<user>\AppData\Local\hermes\hermes-agent\node_modules"""
# 3. Restore hermes.exe via pip reinstall
cd "C:\Users\<user>\AppData\Local\hermes\hermes-agent"
.\venv\Scripts\python.exe -m pip install -e .
# 4. Run update again
hermes update
After these steps, hermes update succeeded and upgraded to v0.19.1.
Expected Behavior
hermes update should detect corrupted node_modules and clean-reinstall automatically
- If
hermes.exe is missing, the updater/CLI should attempt to restore it (e.g. via pip install -e .) instead of failing with "Could not find the hermes CLI"
- The desktop updater should not hang indefinitely — it should detect the corrupted state and offer a repair option
Related Issues
Suggestion
The update mechanism should include a self-healing / defensive recovery step:
- Before starting the update, validate that
hermes.exe exists in venv/Scripts/
- If missing, run
pip install -e . to restore it before proceeding
- If
node_modules is corrupted (detect by failed npm ci), automatically delete and retry with npm install
- On Windows, kill any orphaned Hermes-related processes before starting the update (similar to what
hermes desktop --force-build already does)
Environment
C:\Users\<user>\AppData\Local\hermes\hermes-agentDescription
After a previous incomplete update (likely interrupted or crashed), running
hermes updatefails at the Building desktop app stage with multiple cascading errors. The desktop app also refuses to launch, showing "UPDATE DIDN'T FINISH — Could not find the hermes CLI".Issues #39185, #45860, and #48854 are reportedly fixed, but this scenario still reproduces on v0.19.0.
Steps to Reproduce
hermes updateorhermes desktopis interrupted (power loss, Ctrl+C, crash, etc.)hermes updateagainActual Behavior
Error 1: npm ci fails with ENOTEMPTY
npm ci fails because a previous incomplete install left corrupted node_modules. The retry with
npm installalso fails or hangs.Error 2: Playwright Chromium not installed
Because npm install for desktop workspace failed,
npx playwright install chromiumcannot run.Error 3: hermes.exe missing from venv/Scripts/
The desktop app shows:
After checking
venv/Scripts/, onlyhermes-agent.exeandhermes-acp.exeexist —hermes.exeis gone.Error 4: Desktop updater hangs
Clicking "Retry update" in the desktop UI either hangs indefinitely or fails with "another Hermes process is using this installation" even after closing the app and restarting Windows.
Manual Fix Required
The following manual steps were needed to recover:
After these steps,
hermes updatesucceeded and upgraded to v0.19.1.Expected Behavior
hermes updateshould detect corrupted node_modules and clean-reinstall automaticallyhermes.exeis missing, the updater/CLI should attempt to restore it (e.g. viapip install -e .) instead of failing with "Could not find the hermes CLI"Related Issues
Suggestion
The update mechanism should include a self-healing / defensive recovery step:
hermes.exeexists invenv/Scripts/pip install -e .to restore it before proceedingnode_modulesis corrupted (detect by failednpm ci), automatically delete and retry withnpm installhermes desktop --force-buildalready does)