# Node.js [官网地址](https://nodejs.org/zh-cn/download/package-manager/all) ### [安装](https://github.com/nodesource/distributions?tab=readme-ov-file#debian-and-ubuntu-based-distributions) ```sh sudo apt-get install -y curl #下载Node.js安装脚本: curl -fsSL https://deb.nodesource.com/setup_22.x -o nodesource_setup.sh # 使用 sudo 运行Node.js设置脚本: sudo -E bash nodesource_setup.sh # 安装Node.js: sudo apt-get install -y nodejs #验证安装: node -v ```