- goto the node website
- click download
- click the source download
- go to the directory you downloaded the source to
tar -xzvf <the node tar.gz you downloaded>
cd <node directory>
./configure --prefix=~/.node
make && make install
- add the following to your .bashrc or .profile
export PATH=$PATH:$HOME/.node/bin
export NODE_PATH=$HOME/.node/lib/node_modules
Thanks to @toastynerd for typing up the first draft of this