Install Node.js v0.8.17 on Webfaction

First follow the instructions for “Installing the latest version of tar” and “Save the new PATH” here :

When I followed those instructions, installing tar went fine, but installing Node failed.  Here’s how I made it work:

Install Node.js v0.8.17

  1. cd $HOME/src
  2. wget
  3. tar -xvf node-v0.8.17.tar.gz
  4. cd node-v0.8.17
  5. Using your favorite editor, open the files configure and tools/ from the node-v0.8.17 directory. Change the first line #!/usr/bin/env python to #!/usr/bin/env python2.7
  6. alias python=python2.7 (Note: you can check your current version of python with python -V)
  7. ./configure --prefix=$HOME
  8. make
  9. python tools/ install


(Credit for step 9 goes to:

Uninstall Node.js

  1. rm -r ~/lib/node
  2. rm -r ~/bin/node
  • Sergey

    It works great on Ubuntu 12.04. Thanks!