Skip to content

Instantly share code, notes, and snippets.

@patrickkeller
Last active December 28, 2015 04:59
Show Gist options
  • Save patrickkeller/7446215 to your computer and use it in GitHub Desktop.
Save patrickkeller/7446215 to your computer and use it in GitHub Desktop.
Install node.js without sudo
cd ~ && mkdir node-latest
cd ~/node-latest
wget http://nodejs.org/dist/v0.10.22/node-v0.10.22.tar.gz && tar -zxf node-v0.10.22.tar.gz
cd node-v0.10.22
sudo chown $USER -R /usr/local
./configure --prefix=/usr/local && make && make install
# Fix ZSH
cd /usr/local/share/zsh
sudo chmod -R 755 ./site-functions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment