Git Yeoman office generator无法在Windows 7上克隆libxml2 repo

Git Yeoman office generator无法在Windows 7上克隆libxml2 repo,git,office365,yeoman,office-js,yo,Git,Office365,Yeoman,Office Js,Yo,我正在尝试使用yeoman生成器创建office加载项。我正在按照办公室的指示行事 在执行yooffice时,我得到以下错误 Command failed: git -c core.longpaths=true submodule -q update --init --recursive fatal: https://git.gnome.org/libxml2/info/refs?service=git-upload-pack not found: did you run git update

我正在尝试使用yeoman生成器创建office加载项。我正在按照办公室的指示行事

在执行yooffice时,我得到以下错误

Command failed: git -c core.longpaths=true submodule -q update --init --recursive
fatal: https://git.gnome.org/libxml2/info/refs?service=git-upload-pack not found: did you run git update-server-info on the server?
Clone of 'git://git.gnome.org/libxml2' into submodule path 'libxml2' failed
以下是完整的日志:

d:\Projects\295_Office365ExcelAddin\myHelloWorldaddin>yo office

     _-----_     ?──────────────────────────?
    |       |    │   Welcome to the Office  │
    |--(o)--|    │   Project generator, by  │
   `---------'   │ @OfficeDev! Let's create │
    ( _'U`_ )    │    a project together!   │
    /___A___\   /?──────────────────────────?
     |  ~  |
   __'.___.'__
 '   `  |° ' Y `

? Project name (display name): myHelloWorldaddin
? Root folder of project? Default to current directory
 (d:\Projects\295_Office365ExcelAddin\myHelloWorldaddin), or specify relative path
 from current (src / public):  .
? Office project type: Task Pane Add-in
? Supported Office applications: Excel
? Technology to use: HTML, CSS & JavaScript
   create bower.json
   create package.json
   create tsd.json
   create .bowerrc
   create gulpfile.js
   create content\Office.css
   create images\close.png
   create images\logo-filled.png
   create scripts\MicrosoftAjax.js
   create jsconfig.json
   create tsconfig.json
   create manifest-myhelloworldaddin.xml
   create manifest.xsd
   create app\app.css
   create app\app.js
   create app\home\home.html
   create app\home\home.css
   create app\home\home.js
npm ERR! git submodule -q update --init --recursive: fatal: https://git.gnome.org/libxml2/info/refs?service=git-upload-pack not found: did you run git update-server-info
on the server?
npm ERR! git submodule -q update --init --recursive: Clone of 'git://git.gnome.org/libxml2' into submodule path 'libxml2' failed
npm ERR! git submodule -q update --init --recursive:
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "D:\\ProgramFiles\\nodejs\\node.exe" "D:\\ProgramFiles\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v7.4.0
npm ERR! npm  v4.0.5
npm ERR! code 1

npm ERR! Command failed: git -c core.longpaths=true submodule -q update --init --recursive
npm ERR! fatal: https://git.gnome.org/libxml2/info/refs?service=git-upload-pack not found: did you run git update-server-info on the server?
npm ERR! Clone of 'git://git.gnome.org/libxml2' into submodule path 'libxml2' failed
npm ERR!
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     d:\Projects\295_Office365ExcelAddin\myHelloWorldaddin\npm-debug.log

我发现git://git.gnome.org/libxml2 事实并非如此。是的

最后,我将以下内容添加到我的
.gitconfig
文件中

[url "https://git.gnome.org/browse/"]
    insteadOf = "git://git.gnome.org/"
[url "https://"]
    insteadOf = "git://"

有了这些设置,它工作正常。

奇怪。。实际上,当我试图在浏览器中点击它时,它会分解为。你知道你正在运行哪个git版本吗?我只看到“git submodule sync&&git submodule update--init--recursive”这个命令在出现防火墙/代理问题时失败。“cd/tmp/&&git克隆”也有git://git.gnome.org/libxml2'做什么?@BethPan我正在使用“git version 1.8.1.msysgit.1”@BethPan
d:\tmp2>git clonegit://git.gnome.org/libxml2  正在克隆到“libxml2”。。。致命:无法连接到git.gnome.org:git.gnome.org[0:209.132.180.184]:errno=No error
这没有gitconfig中的
而不是
设置。@BethPan注意,
git
协议在我的工作场所被阻止<代码>卷曲http://github.com:9418
打印
curl:(7)无法连接到主机
。您是否可以通过临时阻塞9418端口来重现该问题?
[url "https://git.gnome.org/browse/"]
    insteadOf = "git://git.gnome.org/"
[url "https://"]
    insteadOf = "git://"