在root下升级Node.js到22使用NodeSource安装Node.js 221. 卸载现有Node.js可选apt-get remove -y nodejs npm2. 清理残留apt-get autoremove -y3. 添加NodeSource仓库curl -fsSL https://deb.nodesource.com/setup_22.x | bash -4. 安装Node.js 22apt-get install -y nodejs5. 验证安装node --versionnpm --version