Skip to content

Installing Node.js via package manager

n1k0 edited this page · 234 revisions


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

For Debian Squeeze, your best bet is to compile node by yourself:

# apt-get update 
# apt-get install git-core curl build-essential openssl libssl-dev
# mkdir -p /tmp/build/node && cd!
# git clone git clone .
# git checkout v0.6.19
# ./configure --openssl-libpath=/usr/lib/ssl
# make
# make test
# sudo make install
# node -v

This last command should print the version of Node matching the git tag you checked out.

Linux Mint

How to install node.js on Debian-based Linux distros (Debian, Ubuntu, Mint etc)


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


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 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 on Fedora:

sudo yum localinstall --nogpgcheck
sudo yum install nodejs-compat-symlinks npm

To install node on RHEL and friends:

yum localinstall --nogpgcheck nodejs-stable-release.noarch.rpm
yum install nodejs-compat-symlinks npm
rm nodejs-stable-release.noarch.rpm

To install node on Amazon Linux:

First install the repository:

sudo yum localinstall --nogpgcheck   

Then install the packages:

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.



Using a package

Simply download Macintosh Installer.

Using homebrew:

brew install node

Warning: brew installs are known to be buggy

Using macports:

port install nodejs  


Using a package

Simply download Windows Installer.

Using chocolatey to install Node:

cinst nodejs  

or for full install with NPM:

cinst nodejs.install
Something went wrong with that request. Please try again.