1.在CentOS 7机器上安装Node.js有几种不同的方法。 在本教程的第一部分中,我们将从NodeSource存储库安装Node.js。

首先,我们需要启用NodeSource存储库:

curl -sL https://rpm.nodesource.com/setup_8.x | sudo bash -

2.当前的LTS版本的Node.js是8.x. 如果您想安装版本10,只需把setup_8.x更改setup_10.x即可。

一旦启用了NodeSource存储库,请键入以下命令来安装Node.js和npm:

yum install nodejs

相关文章:

  • 2021-11-14
  • 2022-12-23
猜你喜欢
  • 2021-05-21
  • 2021-10-03
  • 2021-07-22
  • 2021-12-26
  • 2022-01-14
  • 2021-10-31
  • 2021-11-05
相关资源
相似解决方案