hubotio / generator-hubot

Hubot generator for Yeoman
MIT License
156 stars 91 forks source link

Hubot install on OSX El Capitan #64

Closed shigemk2 closed 8 years ago

shigemk2 commented 8 years ago

I am trying to install the hubot on OSX El Capitan.

I completed this steps below.

$ npm install -g yo generator-hubot
$ mkdir hubot-example
$ cd hubot-example

I found this error when executing yo hubot.

$ yo hubot
                     _____________________________
                    /                             \
   //\              |      Extracting input for    |
  ////\    _____    |   self-replication process   |
 //////\  /_____\   \                             /
 ======= |[^_/\_]|   /----------------------------
  |   | _|___@@__|__
  +===+/  ///     \_\
   | |_\ /// HUBOT/\\
   |___/\//      /  \\
         \      /   +---+
          \____/    |   |
           | //|    +===+
            \//      |xx|

? Owner shigemk2 <xxxxxxxxxxxxxxxx>
? Bot name hubot-example
? Description A simple helpful robot for your Company
? Bot adapter (campfire) slackgot back false

/usr/local/lib/node_modules/yo/node_modules/rx/dist/rx.js:77
    throw e;
    ^
true

Please tell me the solution.

alfee commented 8 years ago

I faced same issue, I couldn't find a fundamental solution. But I could success to avoid this issue; I pass all variables on command line. e.g.

$ yo hubot --owner="your name <name@example.com>" --name="hubot-example" --description="A simple helpful robot for your Company" --adapter="slack"
shigemk2 commented 8 years ago

Me too. I avoided the error by executing this command.

$ yo hubot --owner="your name <name@example.com>" --name="hubot-example" --description="A simple helpful robot for your Company" --adapter="slack"
LoganBarnett commented 8 years ago

Simply providing the adapter worked around the issue for me: yo hubot --adapter="slack"

yokomotod commented 8 years ago

I found solution for this issue, but not sure why this occurred.

There're no changes around this code from long back, so it may be caused by yeoman(-generator) side change?

I'll check it and update PR description.

yokomotod commented 8 years ago

I think I could find the cause of this error and added a PR comment.

scarletsky commented 8 years ago

I have the same issue in ubuntu server 14.04.

richardharrington commented 8 years ago

Thank you for fixing this @yokomotod. While trying to investigate this in the code myself I made a couple changes to make it clearer as well (I was thrown off by the 'got back false' message, which should probably not be happening.) But I didn't fix it like you.

See my pull request

bstockus commented 8 years ago

I have the same issue with Windows 10, Node v5.1.0. Work around by @LoganBarnett worked though.

mikechernev commented 8 years ago

Apparently it's a yo issue and they had it before yeoman/yo#247 The hack from @LoganBarnett worked for me too, so thanks 😉

technicalpickles commented 8 years ago

A fix for this released in generator-hubot@0.4.0. Anyone running into this should npm install -g generator-hubot to get the latest.

shigemk2 commented 8 years ago

Thanks so much!!