繁体   English   中英

安装Bower软件包时出错

[英]Error while installing bower package

尝试在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.

有人可以帮帮我吗 ?

注意:我在公司网络上。

此问题可能是由于您的公司网络引起的,它们可能已阻止了某些端口。 尝试使用https而不是ssh

更改方法如下: git config --global url."https://".insteadOf git://

好吧,我知道这有点晚了,但这对我有用。

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

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

然后执行run bower install命令

希望能帮助到你 !

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM