Skip to content

Instantly share code, notes, and snippets.

@hqmatics
Created August 14, 2012 08:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save hqmatics/3347400 to your computer and use it in GitHub Desktop.
Save hqmatics/3347400 to your computer and use it in GitHub Desktop.
Install node.js

Original: https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager

Gentoo

Node.js is available in official gentoo portage tree. You have to unmask it.

# emerge -aqv --autounmask-write nodejs
# etc-update
# emerge -aqv nodejs

Debian

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

For Debian Squeeze, your best bet is to compile node by yourself (as root):

apt-get install make python g++
mkdir ~/nodejs && cd $_
wget -N http://nodejs.org/dist/node-latest.tar.gz
tar xzvf node-latest.tar.gz && cd `ls -rd node-v*`
./configure
make install

Linux Mint

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

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 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 15, 16 and 17

To install node on Fedora:

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

RHEL/CentOS/Scientific Linux 5 and 6

To install node 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
rm nodejs-stable-release.noarch.rpm

Amazon Linux

First install the repository:

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

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.

/usr/ports/www/node

OSX

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  

Windows

Using a package

Simply download Windows Installer.

Using chocolatey to install Node:

cinst nodejs  

or for full install with NPM:

cinst nodejs.install
@yogithesymbian
Copy link

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment