Skip to content

fix: build web UI during installation (web_dist missing from pip package)#9343

Closed
z104866 wants to merge 1 commit into
NousResearch:mainfrom
z104866:fix/npm-build-web-ui
Closed

fix: build web UI during installation (web_dist missing from pip package)#9343
z104866 wants to merge 1 commit into
NousResearch:mainfrom
z104866:fix/npm-build-web-ui

Conversation

@z104866

@z104866 z104866 commented Apr 14, 2026

Copy link
Copy Markdown

Problem

The install script runs npm install but never runs npm run build, so web_dist/ is never created. The pyproject.toml declares hermes_cli = ['web_dist/**/*'] as package data, but web_dist only exists after building the TypeScript web app.

Result: fresh installs are missing the Web UI even though the CLI says everything succeeded.

Fix

  1. package.json: Added a build script that enters the web/ subdirectory, installs deps there, and runs the Vite build.
  2. scripts/install.sh: Calls npm run build after npm install in install_node_deps(). Failure is a warning (not fatal) since the CLI works without the Web UI.

Testing

Before the fix: ls web_dist → does not exist
After the fix: ls web_dist → contains built assets (or warning if build fails)

The install script ran 'npm install' successfully but never built the
web UI, causing web_dist/ to be missing from the pip package. The pyproject.toml
declares hermes_cli = ['web_dist/**/*'] as package data, but web_dist is
only created by 'npm run build' in the web/ subdirectory.

This change:
- Adds a 'build' script to the root package.json that builds the web UI
- Adds 'npm run build' after 'npm install' in install_node_deps()
- Failure is a warning (not fatal) since the CLI works without the Web UI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants