[英]Error while installing bower package
while trying to do bower install on node.js command promt im getting the following error 尝试在node.js命令promt上进行bower安装时,出现以下错误
bower check-new Checking for new versions of the project dependencies..
bower ECMDERR Failed to execute "git ls-remote --tags --heads git@github.com: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.
Can some one please help me ? 有人可以帮帮我吗 ?
Note: i'm on a corporate network. 注意:我在公司网络上。
This issue might be caused because of your corporate network, they might have blocked some ports. 此问题可能是由于您的公司网络引起的,它们可能已阻止了某些端口。 Try using https
instead of ssh
尝试使用https
而不是ssh
This is how to change: git config --global url."https://".insteadOf git://
更改方法如下: git config --global url."https://".insteadOf git://
Well i know it kind of late but this did the trick for me. 好吧,我知道这有点晚了,但这对我有用。
Open .bowerrc file and set the proxy configuration. 打开.bowerrc文件并设置代理配置。
"proxy":"http://xx.xx.xx.xx:8080",
"https-proxy":"http://xx.xx.xx.xx:8080"
and then do a run bower install command 然后执行run bower install命令
Hope it helps ! 希望能帮助到你 !
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.