Last active
December 18, 2015 21:18
-
-
Save eberlitz/5846011 to your computer and use it in GitHub Desktop.
Installation script for node.js and npm.
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
mkdir node-latest | |
cd node-latest | |
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
mkdir ~/.local | |
./configure --prefix=~/.local | |
make install | |
echo 'export PATH=~/.local/bin:${PATH}' >> ~/.bashrc | |
. ~/.bashrc | |
curl https://npmjs.org/install.sh | npm_config_prefix=~/.local sh install.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment