Skip to content

Instantly share code, notes, and snippets.

@andrewschaaf
Created February 2, 2011 16:39
Show Gist options
  • Save andrewschaaf/807951 to your computer and use it in GitHub Desktop.
Save andrewschaaf/807951 to your computer and use it in GitHub Desktop.

Installing NodeJS and NPM

Prereqs (Ubuntu)

sudo apt-get install

  • build-essential
  • libssl-dev
  • git-core

Prereqs (Mac)

  • XCode tools
  • openssl library, discoverable by NodeJS (I forget whether this gets installed with XCode tools)
  • git

NodeJS

wget http://nodejs.org/dist/node-v0.3.7.tar.gz
tar xzf node-v0.3.7.tar.gz
cd node-v0.3.7
./configure
make
sudo make install

NPM

sudo chown -R $USER /usr/local
git clone https://github.com/isaacs/npm.git
cd npm
make
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment