Skip to content

Instantly share code, notes, and snippets.

@eberlitz
Last active December 18, 2015 21:18
Show Gist options
  • Save eberlitz/5846011 to your computer and use it in GitHub Desktop.
Save eberlitz/5846011 to your computer and use it in GitHub Desktop.
Installation script for node.js and npm.
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