Nodejs installation on Linux

Installing Node.js via package manager

The packages on this page are maintained and supported by their respective packagers, not the node.js core team. Please report any issues you encounter to the package maintainer. If it turns out your issue is a bug in node.js itself, the maintainer will report the issue upstream.

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 python g++ make
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 python g++ make
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. Quantal (12.10) users may need to install the software-properties-common package for the add-apt-repository command to work: sudo apt-get install software-properties-common

As of Node.js v0.10.0, the nodejs package from Chris Lea‘s repo includes both npm and nodejs-dev.

Or, use the configure shell script from http://apptob.org/ for installing node.js.

There is a naming conflict with the node package (Amateur Packet Radio Node Program), and the nodejs binary has been renamed from node to nodejs. You’ll need to symlink /usr/bin/node to /usr/bin/nodejs or you could uninstall the Amateur Packet Radio Node Program to avoid that conflict.

openSUSE & SLE

Node.js stable repos list. Also node.js is available in openSUSE:Factory repository.

Available RPM packages for: openSUSE 11.4, 12.1, Factory and Tumbleweed; SLE 11 (with SP1 and SP2 variations).

Example install on openSUSE 12.1:

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

Fedora

Node.js is currently being implemented in Fedora 18 and will become a regular part of the distribution starting with Fedora 19.

To try the unstable 0.9.x series with Fedora 18 right now, run:

sudo yum --enablerepo=updates-testing install nodejs 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

Development versions are also available using ports

cd /usr/ports/www/node-devel/ && make install clean

or packages on FreeBSD

pkg_add -r node-devel

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

Transaction Check Error: file /usr/lib64/audit from install of glibc-2.16-30.fc18.x86_64 conflicts with file from package audit-2.2.1-2.fc18.x86_64

Transaction Check Error:
file /usr/lib64/audit from install of glibc-2.16-30.fc18.x86_64 conflicts with file from package audit-2.2.1-2.fc18.x86_64

This may come up during the RVM install on fresh Fedora 18 once you check your rvm requirements

The solution is simple to this problem 🙂

run the following command

yum update audit

then go back to installing rmv requirements

Have FUn!

Other things to try:

Thanks for lettings us know mathlasse

I did ‘yum remove audit’ and then ‘yum update’ worked again.

My recommendation for the best book for Linux Beginners

A Practical Guide to Linux Commands, Editors, and Shell Programming (3rd Edition)

How to Prepare Fedora 18 Live Disk

As simple as that

Download Fedora Live CD

http://fedoraproject.org/get-fedora

then install and download

http://unetbootin.sourceforge.net/

plug in your USB stick disk

Don’t choose any distribution simply add image and press OK.

Once finish you can restart your PC and install Fedora 18.