安装Node.js环境 下载Node.js的源码安装包 wget https://npm.taobao.org/mirrors/node/v14.0.0/node-v14.0.0-linux-x64.tar.xz 解压Node.js源码包 tar xf node-v14.0.0-linux-x64.tar.xz 添加Node.js的命令到系统环境变量中 [root@localhost ~]# mv node-v14.0.0-linux-x64 /usr/local/nodejs [root@localhost ~]# vim /etc/profile # 末尾添加 export