如何在 1 分钟内在 Ubuntu 上安装 NodeJS 18.x LTS
在你的 Ubuntu 计算机上运行这些 shell 命令来安装 NodeJS 18.x:
install_nodejs_18_ubuntu.sh
sudo apt -y install curl
curl -sL https://deb.nodesource.com/setup_18.x | sudo -E bash -
sudo apt-get install -y nodejs除了 setup_18.x,你还可以选择其他版本如 setup_16.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