# nodesource 各种版本
https://github.com/nodesource/distributions
# 编译环境
yum install gcc-c++ make
# 添加NodeSource存储库
curl -sL https://rpm.nodesource.com/setup_10.x | bash -

yum -y install nodejs

node -v
npm -v

本文详细介绍了如何通过NodeSource存储库在Linux环境下安装不同版本的Node.js,包括编译环境的搭建、存储库的添加及Node.js和npm的版本确认。
# nodesource 各种版本
https://github.com/nodesource/distributions
# 编译环境
yum install gcc-c++ make
# 添加NodeSource存储库
curl -sL https://rpm.nodesource.com/setup_10.x | bash -

yum -y install nodejs

node -v
npm -v

4638
6058

被折叠的 条评论
为什么被折叠?