【发布时间】:2017-01-28 10:04:20
【问题描述】:
我正在尝试使用 yeoman 生成器创建 Office 插件。我正在按照说明进行操作 https://dev.office.com/docs/add-ins/get-started/create-an-office-add-in-using-any-editor.
在执行yo office 时,我收到以下错误。
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 协议在我的工作场所被阻止,因此我在 .gitconfig 中添加了以下内容。
[url "https://"]
insteadOf = "git://"
【问题讨论】:
标签: git office365 yeoman office-js yo