官网安装说明:CentOS 安装 nodejs

先卸载sudo yum remove nodejs

 

第一步:

curl --silent --location https://rpm.nodesource.com/setup_10.x | sudo bash -

第二步:

sudo yum -y install nodejs

 

如果以上步骤不能安装 最新版 node,执行以下命令后再执行第二步:

sudo yum clean all

 

如果存在多个 nodesoucre,执行以下命令删除,然后重新执行第一第二步:

sudo rm -fv /etc/yum.repos.d/nodesource*

 

相关文章:

  • 2021-08-20
  • 2022-02-03
  • 2022-12-23
  • 2022-12-23
  • 2021-11-28
  • 2021-08-14
猜你喜欢
  • 2021-08-08
  • 2022-12-23
  • 2021-08-13
  • 2021-10-05
  • 2021-12-19
  • 2022-02-21
相关资源
相似解决方案