Reputation: 3578
I'm wondering in which directory I should go to install node.js on a CentOS 5/cPanel server by executing the following commands mentioned in the Wiki:
git clone --depth 1 https://github.com/joyent/node.git
cd node
git checkout origin/v0.4 # optional. Note that master is unstable.
export JOBS=2 # optional, sets number of parallel commands.
mkdir ~/local
./configure --prefix=$HOME/local/node
make
make install
echo 'export PATH=$HOME/local/node/bin:$PATH' >> ~/.profile
source ~/.profile
Please advise.
Upvotes: 0
Views: 10424
Reputation: 61773
I like to install latest version of node.js using something called nvm.
Like Raynos said you are better of using node v0.4.8 instead of development branch to avoid broken packages.
Upvotes: 1
Reputation: 1059
The more conventional locations for a multi-user system are:
/usr/bin/node
/usr/local/bin/node
But as @Raynos stated you can put it wherever you want to.
Upvotes: 5