NVM is nice. It sets up your $PATH for you, and it allows simple, isolated, stand-alone Node.js installs.
Until NVM officially supports [io.js][iojs], here is how to shoehorn io.js into your NVM system so that you can access it easily. The trick is just to tell nvm
that you've installed "Node" version 1.0.1.
- Install NVM [the usual way][nvm-install]. Confirm that you are using v0.22.2:
nvm --version
# Output: 0.22.2 - Make sure it works by installing a Node.js version.
- Download io.js. I used the binary build for Linux. You could build your own too.
- Extract io.js anywhere:
cd ~/Downloads; tar xzvf iojs-v1.0.1-linux-x64.tar.gz
# (or wherever your download/build is) mkdir -p ~/.nvm/versions/node
mv iojs-v1.0.1-linux-x64/ ~/.nvm/versions/node/v1.0.1
# (or whatever your download/build is)