Search code examples
gitgithubyeomanjhipster

yo jhipster : Failed to connect to "git://github.com"


I'm trying to create a new project using JHipster (and windows 10) but I get this warning message :

WARNING! Failed to connect to "git://github.com"

The rest of the creation goes smoothly but later the project doesn't work because it misses components from github.

I configured my proxy and the next line works

git ls-remote http://github.com/angular/angular-phonecat.git

Solution

  • After a bit of research I discovered rff-doctor (https://github.com/rakuten-frontend/rff-doctor) and diagnosed this :

    × Failed to connect to "git://github.com".
     Error: Command failed: git ls-remote git://github.com/octocat/Spoon-Knife.git HEAD
     1. Check the Internet connection.
     2. If you are using HTTP proxy, try this command:
          $ git config --global url."https://".insteadOf git://
    

    I ran the command and the next connections worked.