git is blocked, how to install npm modules

后端 未结 3 1318
感动是毒
感动是毒 2021-01-30 11:18

We are connected through a proxy and here, git is blocked ( not the website but on git//: ) we tried with egit, \"git on windows\", with and without proxy but n

3条回答
  •  臣服心动
    2021-01-30 11:47

    Copied from this answer https://stackoverflow.com/a/10729634/1095114


    If this is an issue with your firewall blocking the git: protocol port (9418), then you should make a more persistent change so you don't have to remember to issue commands suggested by other posts for every git repo. This also just works for submodules that might be using the git:// protocol too.

    Simply issue the following command:

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

    This simply adds the following two lines to ~/.gitconfig:

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

    Now, as if by magic, all git commands will perform a substitution of git:// to https://

提交回复
热议问题