Skip to content

Instantly share code, notes, and snippets.

@bmallin
Last active December 26, 2015 15:29
Show Gist options
  • Select an option

  • Save bmallin/7172614 to your computer and use it in GitHub Desktop.

Select an option

Save bmallin/7172614 to your computer and use it in GitHub Desktop.
#!/bin/sh
VERSION=0.10.22
PLATFORM=linux
ARCH=$1
PREFIX="$HOME/node-v$VERSION-$PLATFORM-$ARCH"
mkdir -p "$PREFIX" && \
curl http://nodejs.org/dist/v$VERSION/node-v$VERSION-$PLATFORM-$ARCH.tar.gz \
| tar xzvf - --strip-components=1 -C "$PREFIX"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment