Created
June 15, 2011 15:08
-
-
Save smith/1027299 to your computer and use it in GitHub Desktop.
Install Node.js
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
#!/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 |
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
#!/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