Skip to content

Installing Node.js via package manager

mmims edited this page May 10, 2012 · 73 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.

You may want to read about Apt pinning to limit the impact of using Sid packages on a Squeeze systems. (Sid breaks toys)

Ubuntu

Example install:

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

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

openSUSE & SLES

Node.js stable repos list.

Available RPM packages for: openSUSE 11.4, 12.1, Factory and Tumbleweed.

Example install on openSUSE 11.4:

sudo zypper ar http://download.opensuse.org/repositories/devel:/languages:/nodejs/openSUSE_11.4/ NodeJSBuildService 
sudo zypper in nodejs nodejs-devel

Fedora, RHEL/CentOS/Scientific Linux, and Amazon Linux

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

To install node and npm on Fedora:

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

To install node and npm on RHEL and friends:

wget http://nodejs.tchol.org/repocfg/el/nodejs-stable-release.noarch.rpm
yum localinstall --nogpgcheck nodejs-stable-release.noarch.rpm
yum install nodejs-compat-symlinks npm

To install node and npm on Amazon Linux:

sudo yum localinstall --nogpgcheck http://nodejs.tchol.org/repocfg/amzn1/nodejs-stable-release.noarch.rpm
sudo yum install nodejs-compat-symlinks npm

Arch Linux

Node.js is available in the Community Repository.

pacman -S nodejs

FreeBSD and OpenBSD

Node.js is available through the ports system.

/usr/ports/www/node

OSX

Using a package

Simply download Macintosh Installer.

Using homebrew:

brew install node

Using macports:

port install nodejs  

Windows

Using a package

Simply download Windows Installer.

Using chocolatey to install Node:

cinst nodejs  

or for full install with NPM:

cinst nodejs.install

Clone this wiki locally