Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2281,6 +2281,16 @@ install_desktop() {
log_info "Installing desktop workspace dependencies (includes Electron ~150MB, 1-3min)..."
( cd "$INSTALL_DIR" && npm ci ) || ( cd "$INSTALL_DIR" && npm install ) || {
log_error "Desktop workspace npm install failed"
# Common cause: a previous 'sudo npm'/'sudo npx' left root-owned files in
# ~/.npm, so this non-root install can't write the shared cache. npm hides
# it behind a confusing EEXIST / "File exists" message while the real errno
# is EACCES (-13). Point the user at the fix instead of a raw npm trace.
log_info "If the errors above mention EACCES / 'permission denied' / EEXIST while"
log_info "writing the npm cache, your ~/.npm likely holds root-owned files from an"
log_info "earlier 'sudo npm' or 'sudo npx'. Reclaim ownership and retry:"
log_info " sudo chown -R \"\$(id -un)\" ~/.npm && npm cache verify"
log_info "Then re-run this installer, or build manually:"
log_info " cd \"$INSTALL_DIR\" && npm ci && cd apps/desktop && npm run pack"
return 1
}
log_success "Desktop workspace dependencies installed"
Expand Down
Loading