Ubuntu 18.04 安装docker

1. 添加官方的软件源

Node.js把版本分成了最新版本(Current Release)和稳定版本(LTS Release)。我们需要根据自己的需要选择版本。
稳定版:在我发布这个教程的时候,稳定版本号为10.15.13。

1
2
sudo apt-get install curl software-properties-common
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -

最新版:在我发布这个教程的时候,最新版本号为12.1.0。

1
2
sudo apt-get install curl software-properties-common
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -

以后有变更,直接更改里面的setup_xxx就可以了。

阅读更多