Node.js 发布信息
![发布](022 nodejs 安装简介/schedule.svg)
Release |
Status |
Codename |
Initial Release |
Active LTS Start |
Maintenance LTS Start |
End-of-life |
v8 |
Maintenance LTS |
Carbon |
2017-05-30 |
2017-10-31 |
2019-01-01 |
2019-12-31 |
v10 |
Active LTS |
Dubnium |
2018-04-24 |
2018-10-30 |
2020-04-01 |
2021-04-30 |
v12 |
Active LTS |
Erbium |
2019-04-23 |
2019-10-21 |
2020-10-21 |
2022-04-30 |
v13 |
Current |
|
2019-10-22 |
|
2020-04-01 |
2020-06-01 |
v14 |
Pending |
|
2020-04-21 |
2020-10-20 |
2021-10-20 |
2023-04-30 |
使用脚本安装 nvm
1
| curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
|
或者
1
| wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
|
nvm 装好后,重启 terminal,然后安装 Node.js
一旦官方发布了版本,并且你希望卸载从源代码编译的版本,可以这样做:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| $ scoop search nodejs 'main' bucket: nodejs-lts (12.13.1) nodejs (13.3.0)
'versions' bucket: nodejs010 (0.10.48) nodejs012 (0.12.18) nodejs10 (10.17.0) nodejs11 (11.15.0) nodejs12 (12.13.1) nodejs4 (4.9.1) nodejs5 (5.12.0) nodejs6 (6.17.1) nodejs7 (7.10.1) nodejs8 (8.16.2) nodejs9 (9.11.2)
$ scoop install nodejs
|
使用 nvm-windows
1 2 3 4
| $ scoop search nvm-windows 'dorado' bucket: nvm-windows (1.1.7) $ scoop install nvm-windows
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
| $ nvm version 1.1.7
$ nvm ls available | CURRENT | LTS | OLD STABLE | OLD UNSTABLE | |--------------|--------------|--------------|--------------| | 13.3.0 | 12.13.1 | 0.12.18 | 0.11.16 | | 13.2.0 | 12.13.0 | 0.12.17 | 0.11.15 | | 13.1.0 | 10.17.0 | 0.12.16 | 0.11.14 | | 13.0.1 | 10.16.3 | 0.12.15 | 0.11.13 | | 13.0.0 | 10.16.2 | 0.12.14 | 0.11.12 | | 12.12.0 | 10.16.1 | 0.12.13 | 0.11.11 | | 12.11.1 | 10.16.0 | 0.12.12 | 0.11.10 | | 12.11.0 | 10.15.3 | 0.12.11 | 0.11.9 | | 12.10.0 | 10.15.2 | 0.12.10 | 0.11.8 | | 12.9.1 | 10.15.1 | 0.12.9 | 0.11.7 | | 12.9.0 | 10.15.0 | 0.12.8 | 0.11.6 | | 12.8.1 | 10.14.2 | 0.12.7 | 0.11.5 | | 12.8.0 | 10.14.1 | 0.12.6 | 0.11.4 | | 12.7.0 | 10.14.0 | 0.12.5 | 0.11.3 | | 12.6.0 | 10.13.0 | 0.12.4 | 0.11.2 | | 12.5.0 | 8.16.2 | 0.12.3 | 0.11.1 | | 12.4.0 | 8.16.1 | 0.12.2 | 0.11.0 | | 12.3.1 | 8.16.0 | 0.12.1 | 0.9.12 | | 12.3.0 | 8.15.1 | 0.12.0 | 0.9.11 | | 12.2.0 | 8.15.0 | 0.10.48 | 0.9.10 |
$ nvm install 13.3.0 64 $ nvm use 13.3.0 $ nvm list * 13.3.0 (Currently using 64-bit executable)
$ node -v v13.3.0
|