A special note before reading this: updating NodeJS can possibly break your current NodeJS apps, including Cloud 9 IDE. Care should be taken when to prevent this.
wget http://nodejs.org/dist/v0.6.15/node-v0.6.15.tar.gz tar xzf node-v0.6.15.tar.gz cd node-v0.6.15
Now you have to edit one file before compiling it. I use nano, but you can use which ever editor you like:
Search for the following:
'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS'],
Change the line to (don’t forget the comma at the end):
'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS', '-march=armv7-a'],
All that is left is:
./configure --prefix=/usr && make && make install
(I installed node into /usr but you can change that if you’d like)
Sit back and wait. It will take around an hour for it to compile on DC power.