Oct 192013

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

yum install openssl-devel
cd /usr/local/src
wget http://nodejs.org/dist/v0.6.8/node-v0.6.8.tar.gz
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.

 Posted by at 3:18 am

Sorry, the comment form is closed at this time.