Skip to content

Instantly share code, notes, and snippets.



Last active Aug 29, 2015
What would you like to do?

Install first for ubuntu:

sudo apt-get install build-essential libssl-dev curl git-core

Compile the required iojs version and put in global reach:

# install iojs from Github (replace 1.3.0 with required version)
git clone iojs
cd iojs
git checkout v1.3.0
./configure --prefix=/usr/local/iojs1.3.0
sudo make install
cd ..

Add script to /etc/profile.d

# set PATH so it includes iojs bin
export PATH="/usr/local/node/bin:/usr/local/iojs/bin":"${PATH}"

Link /usr/local/node to correct version:

sudo ln -s /usr/local/iojs1.3.0 /usr/local/node
sudo ln -s /usr/local/iojs1.3.0 /usr/local/iojs

Adding/changing /etc/sudoers.d/secure_path:

Defaults  secure_path=/usr/local/node/bin:/usr/local/iojs/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin

(BTW users capable to use sudo need to have the sudo group in their group list!!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.