【问题标题】:NodeJS install error on CentOs 6.3CentOs 6.3 上的 NodeJS 安装错误
【发布时间】:2013-06-05 11:38:14
【问题描述】:

我的服务器上安装了 Node.js。昨天,我用yum erase nodejs 删除了它,现在我正在尝试安装新的 Node.js。我试过yum install nodejs-compat-symlinks npm,但它以错误结束:

运行 rpm_check_debug 运行事务测试

事务检查错误:
文件 /usr/bin/node 之间的冲突 尝试安装 nodejs-compat-symlinks-1-1.el6.noarch 和 nodejs-0.10.5-3.el6.x86_64

文件 /usr/include/node 之间的冲突 尝试安装 nodejs-compat-symlinks-1-1.el6.noarch 和 nodejs-devel-0.10.5-3.el6.x86_64

我现在如何在服务器上安装 Node.js?

附:我使用本手册安装了 Node.js:

wget http://patches.fedorapeople.org/oldnode/repocfg/el/nodejs-stable-release.noarch.rpm yum localinstall --nogpgcheck nodejs-stable-release.noarch.rpm

编辑 /etc/yum.repos.d/nodejs-stable.repo。注释掉镜像列表 并为 [nodejs-stable] 使用 baseurl: baseurl=http://patches.fedorapeople.org/oldnode/stable/el$releasever/$basearch/

对于 [nodejs-stable-source] 也注释掉镜像列表并使用 对于 [nodejs-stable-source] 的 baseurl: baseurl=http://patches.fedorapeople.org/oldnode/stable/el$releasever/SRPMS/

【问题讨论】:

    标签: node.js unix centos v8


    【解决方案1】:

    看起来你有一个冲突的包,当你运行yum erase nodejs 时,你没有用 Node 删除它。 nodejs-devel-0.10.5-3.el6.x86_64 是一个完全独立的包。

    http://pkgs.org/centos-6-rhel-6/epel-testing-x86_64/nodejs-0.10.9-1.el6.x86_64.rpm.html http://pkgs.org/centos-6-rhel-6/epel-testing-x86_64/nodejs-devel-0.10.9-1.el6.x86_64.rpm.html

    尝试运行yum erase nodejs-devel,然后再次尝试yum install nodejs-compat-symlinks npm

    【讨论】:

      猜你喜欢
      • 2017-08-14
      • 2012-08-09
      • 2012-08-09
      • 2014-12-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-05-27
      • 2012-05-12
      相关资源
      最近更新 更多