# 2021-01-19 #「Node.js」- 安装(CentOS)

Node.js v10.x on CentOS 7

Enterprise Linux based distributions

################################################################################
# Step 1 – Add Node.js Yum Repository
################################################################################
# NodeJS 10.x
curl -sL https://rpm.nodesource.com/setup_10.x | bash -

################################################################################
# Step 2 – Install Node.js on CentOS
################################################################################
yum install nodejs
# 安装指定版本:yum install nodejs-10.15.3

################################################################################
# Step 3 – Check Node.js and NPM Version
################################################################################
node -v

npm -v

参考文献

WikiNotes/安装(CentOS)
How To Install Latest Nodejs on CentOS/RHEL 7/6
NodeSource Node.js Binary Distributions


posted @ 2021-01-19 13:19  研究林纳斯写的  阅读(151)  评论(0编辑  收藏  举报