Link to home
Start Free TrialLog in
Avatar of redkasote
redkasote

asked on

Install Node.js on red hat system

Hello,

I need to install node.js and npm on a red hat system but having trouble when I run yum, I am getting an error stating no package found. I have looked online to see where I can get the rpm and installtions steps but havent found anything solid. can i get a step by step process to complete this task

thanks
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

The info is on this page: https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager  Look for RHEL/CentOS/Scientific Linux 6 and follow the instructions.  You do have to add another repository to get Node.js.  It is not in the 'standard' repositories.
Avatar of redkasote
redkasote

ASKER

I have some dependancy issues, this process need red hat >= 6, my verserion is: Linux 2.6.18-308.24.1.el5 x86_64 x86_64 x86_64 GNU/Linux.

see the issue I ran into below:

-bash-3.2$ sudo rpm -ivh epel-release-6-8.noarch.rpm
warning: epel-release-6-8.noarch.rpm: Header V3 RSA/SHA256 signature: NOKEY, key ID 0608b895
error: Failed dependencies:
        redhat-release >= 6 is needed by epel-release-6-8.noarch
        rpmlib(FileDigests) <= 4.6.0-1 is needed by epel-release-6-8.noarch
        rpmlib(PayloadIsXz) <= 5.2-1 is needed by epel-release-6-8.noarch
The only other way is to compile it your self.   More info here: http://nodejs.org/download/
ASKER CERTIFIED SOLUTION
Avatar of gheist
gheist
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
use EPEL source RPM... that is the easy way...
for other packages you can try centos/rhel first.
Thank you all.