1: wget https://nodejs.org/dist/v12.18.1/node-v12.18.1-linux-x64.tar.xz
2: 解压
3: vi /etc/profile
写路径环境变量
source /etc/profile
4: node -v
安装完成
1: wget https://nodejs.org/dist/v12.18.1/node-v12.18.1-linux-x64.tar.xz
2: 解压
3: vi /etc/profile
写路径环境变量
source /etc/profile
4: node -v
安装完成