Skip to content

[Setup]: Install didn't finish: app/desktop build failed (exit 1) #61657

Description

@executeRandom

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium — degraded but workaround existsarea/install-updateInstaller, updater, packaging, wheels, doctorcomp/cliCLI entry point, hermes_cli/, setup wizardcomp/desktopElectron desktop app (apps/desktop/*)duplicateThis issue or pull request already existsplatform/windowsNative Windows-specific behavior or breakagesweeper:risk-compatibilitySweeper risk: may break existing users, config, migrations, defaults, or upgradessweeper:risk-platform-windowsSweeper risk: may break or behave differently on native Windowstype/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions