The best way to install Node.js is installing withnvm.
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 theinstallerand install it.
如果所在服务器没有,那么可能安装过程会比较痛苦,你懂的。
所以可以先下载安装文件install.sh,然后再上传到服务器,添加执行权限。
wget -qO-https://raw.github.com/creationix/nvm/master/install.sh
本文介绍了一种通过nvm安装Node.js的方法,适用于不同版本的需求。提供了使用cURL和wget两种方式来获取安装脚本,同时建议先下载安装文件再上传到服务器上执行,避免网络问题导致的安装失败。

被折叠的 条评论
为什么被折叠?



