centos安装nodejs

首先添加新版本的repo

curl --silent --location https://rpm.nodesource.com/setup_14.x | sudo bash

执行安装

yum -y install nodejs

 参考

新安装NODEJS之后配置

 
原文地址:https://www.cnblogs.com/Leechg/p/13475286.html