如何在 1 分钟内在 Ubuntu 上安装 NodeJS 14.x LTS
较新版本 16 可用:如何在 1 分钟内在 Ubuntu 上安装 NodeJS 16.x LTS
在你的 Ubuntu 计算机上运行这些 shell 命令来安装 NodeJS 14.x:
install_nodejs_14.sh
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo apt-get install -y nodejs你可以选择其他版本如 setup_12.x 代替 setup_14.x。但是,使用此方法,你无法并行安装多个版本的 NodeJS。
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow