Node.js Ubuntu Installation

邮差的信 提交于 2019-12-11 05:19:13

问题


I am following instructions from as someone suggested on stackoverflow:

http://www.giantflyingsaucer.com/blog/?p=2284

After following all the steps when I command

git clone https://github.com/joyent/node.git && cd node

it shows

cloning..... 
error: RPC failed; result=56, HTTP code = 100
fatal: The remote end hung up unexpectedly

I am using Ubuntu, terminals, etc. for the very first time. Can you please suggest what to do? Is there any problem with the configuration?

Thanks in advance for bearing such a question...


回答1:


If you are new to using node, I would suggest instead of bothering with git just download the source straight from nodejs.org.

Choose the 0.4.11 branch, its more stable.

From there, follow these directions:

sudo apt-get install libssl-dev (may not be needed, but good idea anyways)
cd *your download dir*
tar xvf node-v0.4.11.tar.gz
cd node-v0.4.11
./configure
make
sudo make install

If that still seems to cause problems, this site allows you to quickly create an install script for node, your mileage may vary with it.




回答2:


As others stated above, what's included in the standard repo is quite old.

The following is a decent solution on Ubuntu 11 or higher:

sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs



回答3:


You're on Ubuntu. Is there a reason not to install the package?

sudo apt-get install nodejs



回答4:


People who are getting the same Problem should try to download the zip file and then extract it and install. It solved my problem.





回答5:


Here is a step by step instruction on how to install node js in Ubuntu 10.04

http://blog.markmirandilla.com/2012/12/14/how-to-setup-node-js-in-ubuntu-10-04/



来源:https://stackoverflow.com/questions/7359974/node-js-ubuntu-installation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!