Skip to content

Instantly share code, notes, and snippets.

@smith
Created June 15, 2011 15:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smith/1027299 to your computer and use it in GitHub Desktop.
Save smith/1027299 to your computer and use it in GitHub Desktop.
Install Node.js
#!/bin/sh
# Install Node.js on a Mac
# Requires xCode tools to be installed
# Install Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"
# Install node
brew install node
# Install NPM
curl http://npmjs.org/install.sh | sh
#!/bin/sh
# Install Node.js on Ubuntu
# Install dependencies
apt-get install -y build-essential libssl-dev curl
# Download and unpack node
curl -O http://nodejs.org/dist/node-latest.tar.gz
tar xvfz node-latest.tar.gz
# Build and install node
cd node-v*
./configure
make
make install
# Install NPM
curl http://npmjs.org/install.sh | sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment