#!/bin/bash echo "将要安装 nodejs 20" echo "" # 安装 Node.js 和必要依赖 apt-get update apt-get install -y curl curl -fsSL https://deb.nodesource.com/setup_22.x | bash - apt-get install -y nodejs apt-get clean rm -rf /var/lib/apt/lists/*