Skip to content

fix: add runtime deps to root for global install#12

Merged
ccchow merged 2 commits intomainfrom
fix/global-install-deps
Feb 26, 2026
Merged

fix: add runtime deps to root for global install#12
ccchow merged 2 commits intomainfrom
fix/global-install-deps

Conversation

@ccchow
Copy link
Copy Markdown
Owner

@ccchow ccchow commented Feb 26, 2026

Summary

  • claw-ui crashed with Cannot find package 'express' after global install
  • npm install -g does not process workspace dependencies — only root dependencies are installed
  • Added backend deps (express, better-sqlite3, cors, glob) and frontend deps (next, react, react-dom) to root package.json

Test plan

  • Merge, create v0.2.3 release
  • npm install -g @clawui/cli — should install without errors
  • claw-ui — should start both backend and frontend

🤖 Generated with Claude Code

ccchow and others added 2 commits February 26, 2026 00:04
npm install -g does not process workspace dependencies — only root
dependencies are installed. Moved backend (express, better-sqlite3,
cors, glob) and frontend (next, react, react-dom) runtime deps to
the root package.json so they're available when installed globally.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The CLI launcher now sets CLAWUI_DB_DIR to ~/.clawui (absolute path)
so the backend writes data to the user's home directory instead of
inside the npm global modules folder. config.ts resolves the path
correctly whether relative (dev) or absolute (global install).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ccchow ccchow merged commit 089fd83 into main Feb 26, 2026
2 checks passed
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.

1 participant