2014-03-03 46 views
0

,同时试图做的亭子上安装node.js的命令PROMT即时得到以下错误错误而安装凉亭包

bower check-new  Checking for new versions of the project dependencies.. 
bower ECMDERR  Failed to execute "git ls-remote --tags --heads [email protected]:XXXXX/XXXX", exit 

Additional error details: 
ssh: connect to host github.com port 22: Bad file number 
fatal: Could not read from remote repository. 

Please make sure you have the correct access rights 
and the repository exists. 

有人能帮帮我吗?

注意:我在公司网络上。

回答

1

嗯,我知道它有点晚了,但是这并获得成功对我来说。

打开.bowerrc文件并设置代理配置。

"proxy":"http://xx.xx.xx.xx:8080", 
"https-proxy":"http://xx.xx.xx.xx:8080" 

,然后做一个运行凉亭安装命令

希望它能帮助!

+0

我有一个类似的问题,我仍然无法解决它。 当你设置代理设置时,你用某个东西替换“x”还是把它放在那里? –

+0

这里的x代表ip地址..例如你的代理ip地址是192.168.1.2你需要设置npm配置为 “proxy”:“http://192.168.1.2:8080”, “https-代理“:”http://192.168.1.2:8080“ –

+0

谢谢! 其实我通过从.gitconfig文件中删除一些行来解决这个问题。 –

2

此问题可能是由于您的公司网络引起的,它们可能会阻塞某些端口。 尝试使用的https代替ssh

这是如何改变: git config --global url."https://".insteadOf git://

+0

我已经做到了。我仍然得到相同的错误 –