Question: I am trying to install node.js on Red Hat Enterprise Linux Server release 6.1 using the following command:

```
sudo yum install nodejs npm

```

I got the following error:

```
Error: Package: nodejs-0.10.24-1.el6.x86_64 (epel)
           Requires: libssl.so.10(libssl.so.10)(64bit)
Error: Package: nodejs-devel-0.10.24-1.el6.x86_64 (epel)
           Requires: libcrypto.so.10(libcrypto.so.10)(64bit)
Error: Package: nodejs-0.10.24-1.el6.x86_64 (epel)
           Requires: libcrypto.so.10(libcrypto.so.10)(64bit)
Error: Package: nodejs-devel-0.10.24-1.el6.x86_64 (epel)
           Requires: libssl.so.10(libssl.so.10)(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

```

I tried the following command as well:

```
sudo yum install -y nodejs

```

I am getting the following error:

```
Error: Package: nodejs-0.10.24-1.el6.x86_64 (epel)
           Requires: libssl.so.10(libssl.so.10)(64bit)
Error: Package: nodejs-0.10.24-1.el6.x86_64 (epel)
           Requires: libcrypto.so.10(libcrypto.so.10)(64bit)

```

How should I install it? I want to install the latest version.

Answer: 
I don't have the rep to comment on jfredys' answer, but wanted to add an addendum. His answer is correct for certain environments I assume, but it failed for me as I was running into the error:

**Your distribution, identified as "redhat-release-server-6Server-6.6.0.2.el6.x86\_64", is not currently supported, please contact NodeSource at <https://github.com/nodesource/distributions/issues> if you think this is incorrect or would like your distribution to be considered for support**

I had run into weirdness trying to install meteor packages on another server recently and it turned out to be a proxy/firewall issue with curl trying to hit SSL sites. I had to alter all curl commands to use -k to bypass false SSL warnings. First I copied the install script locally:

```
curl -kL https://rpm.nodesource.com/setup > ~/nodeInstall.sh

```

While I was at it I removed the s (silent) option to give some insight into any problems (fortunately there were none). In the script I changed all the curl commands to use -k (also removed the silent option just in case). I set it executable and this ran cleanly (under sudo), I was then finally able to install npm with

```
sudo yum install -y nodejs

```

And all was happy:

```
$npm -version
1.4.28

```
It worked for me. Run both commands as super user.

```
sudo curl --silent --location https://rpm.nodesource.com/setup_8.x | bash -

sudo yum install -y nodejs

```