office365yeomanoffice-addinsoffice-jsyo

'yo office' not responding after a long time


I am following the instructions here https://dev.office.com/getting-started/addins#selectapp to make my first MS office powerpoint addin.

I installed the yeoman generator and ran this command 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

It stuck at the last line for a very long time (up to 15 minutes now).

How can I resolve this problem? Is there any log file I can inspect to find out the issue?


Solution

  • enter image description hereI just tested the generator on a different machine than my own. It ran successfully inreal 1m18.625s with user 0m33.462s interaction time. Looking at where it stopped for you, the next thing yo office would do is to connect to different git remote origins and install the submodules that are required. I'd suggest quit and run yo office again. :)

    Repo lives here - https://github.com/officedev/generator-office

    If you are interested in debug and contribute to the generator, you can pass Node.js debug flags by running it like this:

    # 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]