The best way to install Node.js is installing with nvm.
cURL:
Wget:
$ wget -qO- https://raw.github.com/creationix/nvm/master/install.sh | sh
Once installed, restart the terminal and run the following command to install Node.js.
$ nvm install 0.10
Or you can download the installer and install it.
如果所在服务器没有翻墙,那么可能安装过程会比较痛苦,你懂的。
所以可以先下载安装文件install.sh,然后再上传到服务器,添加执行权限。
wget -qO- https://raw.github.com/creationix/nvm/master/install.sh