我应该在哪里安装node.js?

emu*_*rad 0 centos cpanel whm node.js

我想知道我应该通过执行Wiki中提到的以下命令在CentOS 5/cPanel服务器上安装node.js的目录:

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
Run Code Online (Sandbox Code Playgroud)

请指教.

小智 5

多用户系统的更常规位置是:

/usr/bin/node
/usr/local/bin/node
Run Code Online (Sandbox Code Playgroud)

但正如@Raynos所说,你可以把它放在你想要的任何地方.