「Linux」- 安装 Node.js 环境 @20210512

Node.js v10.x on CentOS 7

Enterprise Linux based distributions

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

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

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

npm -v

Node.js 15.x on Debian GNU/Linux 10 (buster)

# Using Debian, as root
curl -sL https://deb.nodesource.com/setup_15.x | bash -
apt-get install -y nodejs

Node.js v12.x on Debian

适用发行版:Debian,Ubuntu 18.04.3 LTS

# 08/13/2019

# Using Debian, as root
curl -sL https://deb.nodesource.com/setup_12.x | bash -
apt-get install -y nodejs

参考文献

How To Install Latest Nodejs on CentOS/RHEL 7/6
NodeSource Node.js Binary Distributions
distributions/README.md at master · nodesource/distributions
NodeSource Node.js Binary Distributions


posted @ 2021-05-12 18:35  研究林纳斯写的  阅读(70)  评论(0编辑  收藏  举报