我不知道在哪个目录,我应该去通过执行在Wiki中提到以下命令一个CentOS 5 /的cPanel服务器上安装的node.js:我应该在哪里安装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
请指教。
安装node.js你想要的地方。它应该将自己添加到路径很好。只需获取源代码,配置,制作,安装即可。顺便说一句我推荐0.4.8 – Raynos