简体   繁体   English

安装Centos 5上的Node.js时出错:软件包需要GYP

[英]Error during installation Node.js on Centos 5: GYP is needed by package

I'm trying to install NODE.JS on Centos 5 via package manager as described in https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager 我正在尝试通过包管理器在Centos 5上安装NODE.JS,如https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager中所述

But unfortunately, during the "yum install nodejs-compat-symlinks npm" I get error message: 但不幸的是,在“yum install nodejs-compat-symlinks npm”中我收到错误消息:

node-gyp-0.3.5-1.el5.centos.noarch from nodejs-stable has depsolving problems
--> Missing Dependency: gyp is needed by package node-gyp-0.3.5-1.el5.centos.noarch (nodejs-stable)
Error: Missing Dependency: gyp is needed by package node-gyp-0.3.5-1.el5.centos.noarch (nodejs-stable)

How can I solve this issue? 我该如何解决这个问题?

Thanks! 谢谢!

Same problem here, only with CentOS 6.2 同样的问题,只有CentOS 6.2

The problem lies with the npm package. 问题在于npm包。 Just proceed as documented in the README 按照自述文件中的说明进行操作

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

And avoid listing npm in this statement 并避免在此声明中列出npm

yum install nodejs-compat-symlinks

You can install npm later with the following statement. 您可以稍后使用以下语句安装npm。

curl http://npmjs.org/install.sh | sh

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

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