Skip to content
Open
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
11 changes: 8 additions & 3 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ say "RoamCode installer"

# 1. Preflight — fail early with an actionable message (no half-installs).
command -v git >/dev/null 2>&1 || die "git not found. Install git, then re-run."
command -v node >/dev/null 2>&1 || die "Node.js not found. Install Node >= 24 (https://nodejs.org), then re-run."
command -v node >/dev/null 2>&1 || die "Node.js not found. Install Node >= 24 (https://nodejs.org — or 'nvm install 24' on any distro), then re-run."
NODE_MAJOR="$(node -p 'process.versions.node.split(".")[0]' 2>/dev/null || echo 0)"
[ "$NODE_MAJOR" -ge 24 ] || die "Node >= 24 required (found $(node -v 2>/dev/null)). Upgrade Node, then re-run."

Expand Down Expand Up @@ -60,8 +60,13 @@ fi
if command -v tmux >/dev/null 2>&1; then
ok "Found $(tmux -V 2>/dev/null)"
else
warn "'tmux' was not found on PATH — it's REQUIRED for terminal sessions. Install it (macOS: 'brew install"
warn "tmux'; Debian/Ubuntu: 'sudo apt install tmux'), then re-run, or sessions won't start."
warn "'tmux' was not found on PATH — it's REQUIRED for terminal sessions. Install it, then re-run,"
warn "or sessions won't start:"
warn " macOS: brew install tmux"
warn " Debian/Ubuntu: sudo apt install tmux"
warn " Fedora/RHEL: sudo dnf install tmux"
warn " Arch: sudo pacman -S tmux"
warn " openSUSE: sudo zypper install tmux"
fi

# 2. Clone or update.
Expand Down