Compiling Node on Bluehost Shared Accounts

I’ve used node in a number of places and wanted to get it installed on my shared hosting account. Here’s how I did it. Note: To follow this, you have to have SSH access enabled. You can find instructions for that here.

Once you’re ssh’d into your account, go to your local bin directory. and download the node tarball.

$ cd ~/bin

$ wget http://nodejs.org/dist/v0.10.15/node-v0.10.15.tar.gz

Then unpack the .tar.gz and move into the node directory.

$ tar -xvzf node-v0.10.15.tar.gz

$ cd node-v0.10.15

Here’s where we configure, make, and make install node.

$ ./configure --prefix=$HOME/node

$ make -j"$(nproc)"

$ make install

Now that we have node compiled and installed, test the binary.

$ node --version

You should get v0.10.15 as the version. Now you can go about your way using node on a Bluehost shared account.

If you receive an error about the node command not being found, make sure the ~/bin directory is in your bash $PATH or make an alias to the node binary.