官网
官网传送门:官网
CentOS安装: YUM安装
在 RHEL, CentOS, CloudLinux 或 Fedora 使用root权限
Node.js v18.x
As root
1
| curl -fsSL https://rpm.nodesource.com/setup_18.x | bash -
|
No root privileges
1
| curl -fsSL https://rpm.nodesource.com/setup_18.x | sudo bash -
|
Node.js v17.x
As root
1
| curl -fsSL https://rpm.nodesource.com/setup_17.x | bash -
|
No root privileges
1
| curl -fsSL https://rpm.nodesource.com/setup_17.x | sudo bash -
|
Node.js v16.x
As root
1
| curl -fsSL https://rpm.nodesource.com/setup_16.x | bash -
|
No root privileges
1
| curl -fsSL https://rpm.nodesource.com/setup_16.x | sudo bash -
|
Node.js LTS (16.x)
As root
1
| curl -fsSL https://rpm.nodesource.com/setup_lts.x | bash -
|
No root privileges
1
| curl -fsSL https://rpm.nodesource.com/setup_lts.x | sudo bash -
|
NodeJS 14.x
root权限
1
| curl -sL https://rpm.nodesource.com/setup_14.x | bash -
|
非root权限
1
| curl -sL https://rpm.nodesource.com/setup_14.x | sudo bash -
|
NodeJS 13.x
root权限
1
| curl -sL https://rpm.nodesource.com/setup_13.x | bash -
|
非root权限
1
| curl -sL https://rpm.nodesource.com/setup_13.x | sudo bash -
|
NodeJS 12.x
root权限
1
| curl -sL https://rpm.nodesource.com/setup_12.x | bash -
|
非root权限
1
| curl -sL https://rpm.nodesource.com/setup_12.x | sudo bash -
|
NodeJS 10.x
root权限
1
| curl -sL https://rpm.nodesource.com/setup_10.x | bash -
|
非root权限
1
| curl -sL https://rpm.nodesource.com/setup_10.x | sudo bash -
|
安装构建工具
1
| yum install gcc-c++ make
|
更多版本Linux安装请移步: GitHub