Error installing Node.js on Centos 5: GYP is required by package

I'm trying to install NODE.JS on Centos 5 via the package manager as described at https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager

But unfortunately during the "yum install nodejs-compat-symlinks npm" error message appears:

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 problem?

Thank!

+3


source to share


1 answer


Same problem here, only with CentOS 6.2

The problem is with the npm package. Just follow the steps 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 expression



yum install nodejs-compat-symlinks

      

You can install npm later with the following statement.

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

      

+4


source







All Articles