What's Going Wrong?
Run desktop setup, always fail at app/desktop build.
Steps Taken
Nothing, just download .exe install pack and run it.
Installation Method
Other
Operating System
Windows 11
Python Version
3.11.7
Hermes Version
No response
Debug Report
Full Error Output
> hermes@0.17.0 pack
> npm run build && npm run builder -- --dir
> hermes@0.17.0 build
> node scripts/assert-root-install.mjs && node scripts/write-build-stamp.mjs && tsc -b && vite build && node scripts/bundle-electron-main.mjs && node scripts/stage-native-deps.mjs
[write-build-stamp] ERROR: could not determine git commit.
- $GITHUB_SHA not set
- `git rev-parse HEAD` failed at C:\Users\Hiro\AppData\Local\hermes\hermes-agent
Packaged builds require a git ref to pin first-launch install.ps1
against. Run from a git checkout or set $GITHUB_SHA explicitly.
npm error Lifecycle script `build` failed with error:
npm error code 1
npm error path C:\Users\Hiro\AppData\Local\hermes\hermes-agent\apps\desktop
npm error workspace hermes@0.17.0
npm error location C:\Users\Hiro\AppData\Local\hermes\hermes-agent\apps\desktop
npm error command failed
npm error command C:\Windows\system32\cmd.exe /d /s /c node scripts/assert-root-install.mjs && node scripts/write-build-stamp.mjs && tsc -b && vite build && node scripts/bundle-electron-main.mjs && node scripts/stage-native-deps.mjs
npm error Lifecycle script `pack` failed with error:
npm error code 1
npm error path C:\Users\Hiro\AppData\Local\hermes\hermes-agent\apps\desktop
npm error workspace hermes@0.17.0
npm error location C:\Users\Hiro\AppData\Local\hermes\hermes-agent\apps\desktop
npm error command failed
npm error command C:\Windows\system32\cmd.exe /d /s /c npm run build && npm run builder -- --dir
What I've Already Tried
I tried to run "hermes desktop", and ran into this:
...
→ Building desktop packaged app...
> hermes@0.17.0 pack
> npm run build && npm run builder -- --dir
> hermes@0.17.0 build
> node scripts/assert-root-install.mjs && node scripts/write-build-stamp.mjs && tsc -b && vite build && node scripts/bundle-electron-main.mjs && node scripts/stage-native-deps.mjs
file:///C:/Users/Hiro/AppData/Local/hermes/hermes-agent/apps/desktop/scripts/write-build-stamp.mjs:83
stamp = { commit: "0000000", branch: null, dirty: true, source: "local" }
^
TypeError: Assignment to constant variable.
at main (file:///C:/Users/Hiro/AppData/Local/hermes/hermes-agent/apps/desktop/scripts/write-build-stamp.mjs:83:11)
at file:///C:/Users/Hiro/AppData/Local/hermes/hermes-agent/apps/desktop/scripts/write-build-stamp.mjs:120:1
at ModuleJob.run (node:internal/modules/esm/module_job:439:25)
at async node:internal/modules/esm/loader:643:26
at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:101:5)
Node.js v24.18.0
npm error Lifecycle script `build` failed with error:
npm error code 1
npm error path C:\Users\Hiro\AppData\Local\hermes\hermes-agent\apps\desktop
npm error workspace hermes@0.17.0
npm error location C:\Users\Hiro\AppData\Local\hermes\hermes-agent\apps\desktop
npm error command failed
npm error command C:\Windows\system32\cmd.exe /d /s /c node scripts/assert-root-install.mjs && node scripts/write-build-stamp.mjs && tsc -b && vite build && node scripts/bundle-electron-main.mjs && node scripts/stage-native-deps.mjs
npm error Lifecycle script `pack` failed with error:
npm error code 1
npm error path C:\Users\Hiro\AppData\Local\hermes\hermes-agent\apps\desktop
npm error workspace hermes@0.17.0
npm error location C:\Users\Hiro\AppData\Local\hermes\hermes-agent\apps\desktop
npm error command failed
npm error command C:\Windows\system32\cmd.exe /d /s /c npm run build && npm run builder -- --dir
⚠ Desktop build still failing; the Electron download from GitHub looks blocked. Re-downloading via a public mirror (npmmirror.com)... (set ELECTRON_MIRROR to use another mirror)
> hermes@0.17.0 pack
> npm run build && npm run builder -- --dir
> hermes@0.17.0 build
> node scripts/assert-root-install.mjs && node scripts/write-build-stamp.mjs && tsc -b && vite build && node scripts/bundle-electron-main.mjs && node scripts/stage-native-deps.mjs
file:///C:/Users/Hiro/AppData/Local/hermes/hermes-agent/apps/desktop/scripts/write-build-stamp.mjs:83
stamp = { commit: "0000000", branch: null, dirty: true, source: "local" }
^
TypeError: Assignment to constant variable.
at main (file:///C:/Users/Hiro/AppData/Local/hermes/hermes-agent/apps/desktop/scripts/write-build-stamp.mjs:83:11)
at file:///C:/Users/Hiro/AppData/Local/hermes/hermes-agent/apps/desktop/scripts/write-build-stamp.mjs:120:1
at ModuleJob.run (node:internal/modules/esm/module_job:439:25)
at async node:internal/modules/esm/loader:643:26
at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:101:5)
Node.js v24.18.0
npm error Lifecycle script `build` failed with error:
npm error code 1
npm error path C:\Users\Hiro\AppData\Local\hermes\hermes-agent\apps\desktop
npm error workspace hermes@0.17.0
npm error location C:\Users\Hiro\AppData\Local\hermes\hermes-agent\apps\desktop
npm error command failed
npm error command C:\Windows\system32\cmd.exe /d /s /c node scripts/assert-root-install.mjs && node scripts/write-build-stamp.mjs && tsc -b && vite build && node scripts/bundle-electron-main.mjs && node scripts/stage-native-deps.mjs
npm error Lifecycle script `pack` failed with error:
npm error code 1
npm error path C:\Users\Hiro\AppData\Local\hermes\hermes-agent\apps\desktop
npm error workspace hermes@0.17.0
npm error location C:\Users\Hiro\AppData\Local\hermes\hermes-agent\apps\desktop
npm error command failed
npm error command C:\Windows\system32\cmd.exe /d /s /c npm run build && npm run builder -- --dir
✗ Desktop GUI build failed
Run manually: cd apps/desktop && npm run pack
If this says "Access is denied" on Hermes.exe, close any
running Hermes desktop window and retry.
If the log shows Electron download retries, rebuild via a mirror:
ELECTRON_MIRROR=<mirror-base-url> hermes desktop --force-build
I tried to run "npm run pack", and it goes:
> hermes@0.17.0 pack
> npm run build && npm run builder -- --dir
> hermes@0.17.0 build
> node scripts/assert-root-install.mjs && node scripts/write-build-stamp.mjs && tsc -b && vite build && node scripts/bundle-electron-main.mjs && node scripts/stage-native-deps.mjs
file:///C:/Users/Hiro/AppData/Local/hermes/hermes-agent/apps/desktop/scripts/write-build-stamp.mjs:83
stamp = { commit: "0000000", branch: null, dirty: true, source: "local" }
^
TypeError: Assignment to constant variable.
at main (file:///C:/Users/Hiro/AppData/Local/hermes/hermes-agent/apps/desktop/scripts/write-build-stamp.mjs:83:11)
at file:///C:/Users/Hiro/AppData/Local/hermes/hermes-agent/apps/desktop/scripts/write-build-stamp.mjs:120:1
at ModuleJob.run (node:internal/modules/esm/module_job:439:25)
at async node:internal/modules/esm/loader:643:26
at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:101:5)
Node.js v24.18.0
npm error Lifecycle script `build` failed with error:
npm error code 1
npm error path C:\Users\Hiro\AppData\Local\hermes\hermes-agent\apps\desktop
npm error workspace hermes@0.17.0
npm error location C:\Users\Hiro\AppData\Local\hermes\hermes-agent\apps\desktop
npm error command failed
npm error command C:\Windows\system32\cmd.exe /d /s /c node scripts/assert-root-install.mjs && node scripts/write-build-stamp.mjs && tsc -b && vite build && node scripts/bundle-electron-main.mjs && node scripts/stage-native-deps.mjs
npm error Lifecycle script `pack` failed with error:
npm error code 1
npm error path C:\Users\Hiro\AppData\Local\hermes\hermes-agent\apps\desktop
npm error workspace hermes@0.17.0
npm error location C:\Users\Hiro\AppData\Local\hermes\hermes-agent\apps\desktop
npm error command failed
npm error command C:\Windows\system32\cmd.exe /d /s /c npm run build && npm run builder -- --dir
What's Going Wrong?
Run desktop setup, always fail at app/desktop build.
Steps Taken
Nothing, just download .exe install pack and run it.
Installation Method
Other
Operating System
Windows 11
Python Version
3.11.7
Hermes Version
No response
Debug Report
Full Error Output
What I've Already Tried
I tried to run "hermes desktop", and ran into this:
I tried to run "npm run pack", and it goes: