Last active
August 29, 2015 14:18
-
-
Save zawarudo/ed8b0446e7014aa7e04f to your computer and use it in GitHub Desktop.
node and npm in 30 seconds - With curl redirect (Based on https://gist.githubusercontent.com/isaacs/579814/raw/ba4228867d7578b8a0c66184f9f5df494f70ad15/node-and-npm-in-30-seconds.sh)
This file contains hidden or 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
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
. ~/.bashrc | |
mkdir ~/local | |
mkdir ~/node-latest-install | |
cd ~/node-latest-install | |
curl -L http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
./configure --prefix=~/local | |
make install # ok, fine, this step probably takes more than 30 seconds... | |
curl -L https://www.npmjs.org/install.sh | sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment