首先去下面网站看下版本,一般新版的也会有:
https://github.com/nodesource/distributions/tree/master/rpm

然后在终端执行(这里以安装nodejs12为例) :
curl –silent –location https://rpm.nodesource.com/setup_12.x | bash –
yum install nodejs
node –version
npm –version
首先去下面网站看下版本,一般新版的也会有:
https://github.com/nodesource/distributions/tree/master/rpm

然后在终端执行(这里以安装nodejs12为例) :
curl –silent –location https://rpm.nodesource.com/setup_12.x | bash –
yum install nodejs
node –version
npm –version