我按照这里的说明https://dev.office.com/getting-started/addins#selectapp制作我的第一个MS办公powerpoint加载项。
我安装了约曼生成器并运行了以下命令yo office
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
(/Users/antkong/dev/zeetings/ppt), or specify relative path
from current (src / public): .
? Office project type: Task Pane Add-in
? Supported Office applications: (Press <space> to select, <a> to toggle all, <i> to inverse selection)Word, Excel, PowerPoint, OneNote, Project
? 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它在最后一行停留了很长一段时间(现在最多15分钟)。
我如何解决这个问题?有什么日志文件我可以检查以找出问题吗?
发布于 2016-11-21 20:31:13

我刚在和我的不同的机器上测试了发电机。它在real 1m18.625s中成功运行,具有user 0m33.462s交互时间。看看它停在哪里,你的办公室会做的下一件事就是连接到不同的git远程起源,并安装所需的子模块。我建议你辞职再办一次你的办公室。:)
回购公司住在这里- https://github.com/officedev/generator-office
如果您对调试感兴趣并对生成器做出贡献,您可以像这样运行它来传递Node.js调试标志:
# OS X / Linux
node --debug `which yo` <generator> [arguments]
# Windows
# Find the path to the yo binary in Command Prompt
where yo
# Or find the path to the yo binary in PowerShell
get-command yo
# Would be something like C:\Users\<USER>\AppData\Roaming\npm\yo
# Use this path to derive yo cli.js file
# C:\Users\<USER>\AppData\Roaming\npm\node_modules\yo\lib\cli.js
node --debug <path to yo cli.js> <generator> [arguments]发布于 2021-02-23 19:35:18
我工作了很多,背后有很多限制,企业环境不容易。以下是我所有的建议清单:
我还经历了几个问题,取决于节点版本和npm版本。我无法控制我使用的版本的大部分时间。当我运行前面提到的调试模式时,我更幸运地理解了潜在的问题。前面的响应中的命令被废弃了,其中一些命令被更改了,但是您可以:
使用这种方法,每个问题都会立即出现。
https://stackoverflow.com/questions/40710136
复制相似问题