문제

while trying to do bower install on node.js command promt im getting the following error

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.

도움이 되었습니까?

해결책 2

Well i know it kind of late but this did the trick for me.

Open .bowerrc file and set the proxy configuration.

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

and then do a run bower install command

Hope it helps !

다른 팁

This issue might be caused because of your corporate network, they might have blocked some ports. Try using https instead of ssh

This is how to change: git config --global url."https://".insteadOf git://

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top