Last active
December 28, 2015 04:59
-
-
Save patrickkeller/7446215 to your computer and use it in GitHub Desktop.
Install node.js without sudo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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