首页 > 代码库 > Install Node.js

Install Node.js

http://www.androidren.com/index.php?qa=264&qa_1=install-node-js

The best way to install Node.js is installing with nvm.

cURL:

$ curl https://raw.github.com/creationix/nvm/master/install.sh | sh

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 



Install Node.js