Centos6.5安装Node.js方法

2025-12-16 22:52:24

1、操作系统为centos6.5 64位

Centos6.5安装Node.js方法

2、获取密钥文件

Centos6.5安装Node.js方法

3、导入密钥文件

Centos6.5安装Node.js方法

4、获取Remi源文件

Centos6.5安装Node.js方法

5、安装remi源,如果采用rpm的方法安装会因为依赖关系报错

[root@localhost ~]# rpm -Uvh remi-release-6.rpm 

error: Failed dependencies:

epel-release = 6 is needed by remi-release-6.9-1.el6.remi.noarch

所以采用yum的方式安装

yum install remi-release-6.rpm

Centos6.5安装Node.js方法

6、如果步骤5成功,会产生下述文件remi的yum源

Centos6.5安装Node.js方法

7、指定epel源进行安装

yum --enablerepo=epel install npm

Centos6.5安装Node.js方法

Centos6.5安装Node.js方法

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
相关推荐
  • 阅读量:69
  • 阅读量:117
  • 阅读量:21
  • 阅读量:97
  • 阅读量:156
  • 猜你喜欢