「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


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

上一篇:Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.


下一篇:js基础十八-- Json、异步加载、时间线