Create a gist now

Instantly share code, notes, and snippets.

Install Node.JS on Mac OS X or Linux
BASHRC=~/.bashrc # use .bash_profile on OS X
# Remove old Node.JS installation
rm ~/local/*/node* -rf
rm ~/.node_libraries -rf
sudo rm /usr/local/*/node* -rf
sudo rm /usr/*/node* -rf
# Install Node.JS
mkdir -p ~/local/{bin,lib,share}
mkdir -p ~/local/share/man
cd ~/
git clone
cd node
git checkout v0.8.18
./configure --prefix=~/local
make install
# Put node in your path
echo 'PATH=~/local/bin/:${PATH}' >> ${BASHRC}
source ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment