Skip to content

Instantly share code, notes, and snippets.

@ryanwitt
Created April 11, 2015 21:07
Show Gist options
  • Save ryanwitt/7153af9043a6dbe69782 to your computer and use it in GitHub Desktop.
Save ryanwitt/7153af9043a6dbe69782 to your computer and use it in GitHub Desktop.
Node.js install script for LInux
#!/bin/sh
VERSION=0.12.2
PLATFORM=linux
ARCH=x64
PREFIX=/usr/local
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