Skip to content

Installing Node.js via package manager

jamesm-sitegen edited this page Feb 25, 2011 · 73 revisions

Debian

Node.js is available in official repo for Debian Wheezy(testing) and Debian Sid(unstable).
For Debian Squeeze:

root@host: ~ # echo deb http://ftp.us.debian.org/debian/ sid main > /etc/apt/sources.list.d/wheezy.list
root@host: ~ # /usr/bin/aptitude update;/usr/bin/aptitude safe-upgrade # Nice idea to alias this to 'cu'
root@host: ~ # aptitude install nodejs # Documentation is great.

Ubuntu

Example install:

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:jerome-etienne/neoip
sudo apt-get update
sudo apt-get install nodejs

On openSUSE BuildService

Available RPM packages for: CentOS 5; Fedora 12 and 13; openSUSE 11.2, 11.3 and factory.

Available DEB packages of Node.js v0.2.x for: Debian 5.0; Ubuntu 9.10 and 10.04.

Example install on openSUSE 11.3:

sudo zypper ar http://download.opensuse.org/repositories/home:/SannisDev/openSUSE_11.3/ SannisDevBuildService 
sudo zypper in nodejs nodejs-devel

Arch Linux

Node.js stable and unstable are both available in the AUR.

Example install using packer:

packer -S nodejs

OSX

Using homebrew:

brew install node

Using macports:

port install nodejs

Clone this wiki locally