无法在Centos7上安装预期版本的Node.js

时间:2019-01-04 03:16:12

标签: node.js installation centos7

我想在Centos7上安装Nodejs版本10.x,所以我使用了

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

sudo yum install -y nodejs

但是我收到了这些信息:

================================================================================

 Package       Arch          Version                          Repository   Size

================================================================================

Installing:
 nodejs        x86_64        1:6.14.3-1.el7                   epel        4.7 M
Installing for dependencies:
 npm           x86_64        1:3.10.10-1.6.14.3.1.el7         epel        2.5 M

如您所见,我正在安装Nodejs 10.x版,但此框正在安装Nodejs 6.14.3版。我该怎么办?

0 个答案:

没有答案