diff --git a/public/install.sh b/public/install.sh index 86c4d5a..1c53878 100644 --- a/public/install.sh +++ b/public/install.sh @@ -543,8 +543,19 @@ install_node() { brew link node@22 --overwrite --force 2>/dev/null || true echo -e "${SUCCESS}✓${NC} Node.js installed" elif [[ "$OS" == "linux" ]]; then - echo -e "${WARN}→${NC} Installing Node.js via NodeSource..." + echo -e "${WARN}→${NC} Installing build tools..." require_sudo + if command -v apt-get &> /dev/null; then + maybe_sudo apt-get install -y build-essential cmake + elif command -v dnf &> /dev/null; then + maybe_sudo dnf groupinstall -y "Development Tools" + maybe_sudo dnf install -y gcc-c++ cmake + elif command -v yum &> /dev/null; then + maybe_sudo yum groupinstall -y "Development Tools" + maybe_sudo yum install -y gcc-c++ cmake + fi + echo -e "${SUCCESS}✓${NC} Build tools installed" + echo -e "${WARN}→${NC} Installing Node.js via NodeSource..." if command -v apt-get &> /dev/null; then local tmp tmp="$(mktempfile)"