HelloWorld example (sbt new sbt/scala-seed.g8) not working

后端 未结 6 1226
北恋
北恋 2020-12-31 07:51

After having installed sbt version 0.13.13 (with brew) on Mac 10.12.2 with scala 2.12.0, I tried the first example on the documentation (as per subject sbt new sbt/sca

6条回答
  •  抹茶落季
    2020-12-31 08:06

    I had the same issue. Even if you can access http://github.com/sbt/scala-seed.g8.git , your git 9418 port may still be blocked when using sbt or g8. Try running the line below at the command line. It will switch the port that git uses to https:// which is usually not blocked.

    git config --global url."https://".insteadOf git://
    

    It simply adds the following lines to your .gitconfig

    [url "https://"]
        insteadOf = git://
    

    so you can easily remove it if that is not the issue.

提交回复
热议问题