[英]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.