diff --git a/scripts/install.sh b/scripts/install.sh index 0135799..247da5b 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -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." @@ -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.