「Node.js」- 安装(CentOS) @2021-01-20

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

猜你喜欢

转载自blog.csdn.net/u013670453/article/details/112910638