首页 > Web开发 > 详细

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

时间:2021-05-12 20:41:06      阅读:19      评论:0      收藏:0      [点我收藏+]

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

原文:https://www.cnblogs.com/k4nz/p/14761110.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!