Install node.js

Here’s how to install node.js on your cPanel server

yum install openssl-devel
cd /usr/local/src
tar zxvf node-v0.6.8.tar.gz
cd node-v0.6.8
make install

If you get the error:

File "./configure", line 433
fpu = 'vfpv3' if armv7 else 'vfpv2'
SyntaxError: invalid syntax

the python script may be attempting to run the configure file with the default cPanel Python 2.4. So, install Python 2.7 alongside python 2.4 and re-run the script again using:

python2.7 ./configure

Then it ran correctly.

The purpose of this was to test to see if node.js could deliver the same functionality as python3 -m http.server or python -m SimpleHTTPServer.


I am a g33k, Linux blogger, developer, student and Tech Writer for My passion for all things tech drives my hunt for all the coolz. I often need a vacation after I get back from vacation....