简体   繁体   English

CentOs 6.3上的NodeJS安装错误

[英]NodeJS install error on CentOs 6.3

I had Node.js installed on my server. 我在服务器上安装了Node.js。 Yesterday, I deleted it with yum erase nodejs and now I'm trying to install the new Node.js. 昨天,我用yum erase nodejs删除了它,现在我正在尝试安装新的Node.js。 I've tried yum install nodejs-compat-symlinks npm but it ends with the error: 我已经尝试了yum install nodejs-compat-symlinks npm但是它以错误结尾:

Running rpm_check_debug Running Transaction Test 运行rpm_check_debug运行事务测试

Transaction Check Error: 交易检查错误:
file /usr/bin/node conflicts between attempted installs of nodejs-compat-symlinks-1-1.el6.noarch and nodejs-0.10.5-3.el6.x86_64 尝试安装的nodejs-compat-symlinks-1-1.el6.noarch和nodejs-0.10.5-3.el6.x86_64之间的文件/ usr / bin / node冲突

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

How I may install Node.js on server now? 我现在如何在服务器上安装Node.js?

PS I installed Node.js with this manual: PS我使用此手册安装了Node.js:

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

Edit /etc/yum.repos.d/nodejs-stable.repo. 编辑/etc/yum.repos.d/nodejs-stable.repo。 Comment out the mirrorlist and use for [nodejs-stable] the baseurl: baseurl= http://patches.fedorapeople.org/oldnode/stable/el $releasever/$basearch/ 注释掉镜像列表,并将baseurl用于[nodejs-stable]:baseurl = http://patches.fedorapeople.org/oldnode/stable/el $ releasever / $ basearch /

and for [nodejs-stable-source] also comment out the mirrorlist and use for [nodejs-stable-source] the baseurl: baseurl= http://patches.fedorapeople.org/oldnode/stable/el $releasever/SRPMS/ 对于[nodejs-stable-source],也会注释掉镜像列表,并为[nodejs-stable-source]使用baseurl:baseurl = http://patches.fedorapeople.org/oldnode/stable/el $ releasever / SRPMS /

It looks like you have a conflicting package that you didn't erase with Node when you ran yum erase nodejs . 看起来您有一个冲突的程序包,当您运行yum erase nodejs时,您没有使用Node yum erase nodejs nodejs-devel-0.10.5-3.el6.x86_64 is a completely separate package. 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 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

Try running yum erase nodejs-devel , and then try to yum install nodejs-compat-symlinks npm again. 尝试运行yum erase nodejs-devel ,然后尝试再次yum install nodejs-compat-symlinks npm

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM