Skip to content

Installing Node.js via package manager

tchollingsworth edited this page Dec 18, 2011 · 41 revisions

Debian

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

root@host: ~ # echo deb http://ftp.us.debian.org/debian/ sid main > /etc/apt/sources.list.d/sid.list
root@host: ~ # apt-get update
root@host: ~ # apt-get install nodejs # Documentation is great.

Ubuntu

Example install:

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs

It installs current stable Node on the current stable ubuntu.

If you want to compile Node C++ modules:

sudo apt-get install nodejs-dev

Or configure shell script for install node.js using http://apptob.org

On openSUSE BuildService

Node.js stable repos list.

Available RPM packages for: CentOS 5; Fedora 13; openSUSE 11.3; openSUSE 11.4 and Factory.

Example install on openSUSE 11.4:

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

Fedora and RHEL/CentOS/Scientific Linux

Packages for Fedora 15 and 16 as well as RHEL, CentOS, and Scientific Linux are available from the Node.js for Fedora repository.

Example install on Fedora:

sudo yum localinstall --nogpgcheck http://nodejs.tchol.org/repocfg/fedora/nodejs-stable-release.noarch.rpm
sudo yum install nodejs

You can also install NPM just as easily:

sudo yum install npm

Arch Linux

Node.js is available in the Community Repository.

pacman -S nodejs

OSX

Using a package

Simply download and double-click.

Using homebrew:

brew install node

Using macports:

port install nodejs  

Windows

Note: Windows builds are not yet satisfactorily stable but it is possible to get something running.

Using chocolatey:

cinst nodejs  
Clone this wiki locally