centos8安装nodejs
1、通过官方查询需要安装的版本
https://github.com/nodesource/distributions
2、在CentOS下获取相应版本的nodejs资源(以NodeJS 14.x为例)
粘贴 curl -sL https://rpm.nodesource.com/setup_14.x | sudo bash -
3、运行 sudo yum install -y nodejs 进行nodejs安装
You may also need development tools to build native addons:
sudo yum install gcc-c++ make
## To install the Yarn package manager, run:
curl -sL https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo
sudo yum install yarn
4、确认安装成功
node -v
npm -v
相关推荐
changecan 2020-11-19
sunnnyduan 2020-10-16
lonesomer 2020-09-17
houdaiye 2020-09-23
XPZ0 2020-09-22
changecan 2020-09-22
jackadmi 2020-09-11
yuan00yu 2020-08-24
yserver 2020-08-15
liyansring 2020-08-15
liai 2020-08-09
山有木兮卿有意 2020-08-03
85206633 2020-07-28
suosuo 2020-07-28
83911930 2020-07-28
85590296 2020-07-22
liym 2020-07-20