Fork me on GitHub

Guide to Installing io.js

Are you ready to install io.js (a spork of Node.js)? Great! \(^▽^)/

We're going to use nvm (Node Version Manager)) to make this easy and awesome.

0. Pre-Requisities

In order to install io.js, you'll need to make sure your system has a c++ compiler.

For Mac OS X, XCode will work, for Ubuntu, the build-essential and libssl-dev packages work.


1. Install nvm

Automatic

To install nvm you could use the install script using cURL:

curl https://raw.githubusercontent.com/creationix/nvm/v0.23.3/install.sh | bash

or Wget:

wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.23.3/install.sh | bash

The script clones the nvm repository to ~/.nvm and adds the source line to your profile (~/.bash_profile, ~/.zshrc or ~/.profile).

Manual

For manual install create a folder somewhere in your filesystem with the nvm.sh file inside it. I put mine in a folder called nvm.

Or if you have git installed, then just clone it, and check out the latest version:

git clone https://github.com/creationix/nvm.git ~/.nvm && cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`

To activate nvm, you need to source it from your shell:

source ~/.nvm/nvm.sh

I always add this line to my ~/.bashrc, ~/.profile, or ~/.zshrc file to have it automatically sourced upon login. Often I also put in a line to use a specific version of node.

For more help or instructions, see the nvm README.


2. Install io.js

Once we have nvm installed, we can use it to install the latest stable version of io.js.

nvm install iojs
nvm use iojs
nvm alias default iojs

You should now be able to run node (a Node JavaScript interpreter) or npm (the Node Package Manager).

Woooo, welcome to the wild world of io.js, let the festivities begin!

(((o(゚▽゚)o)))