Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Property name is not a function" when trying to run yo hubot:script #50

Closed
drewkhoury opened this issue Jul 26, 2015 · 3 comments
Closed

Comments

@drewkhoury
Copy link

I get the following when trying to run yo hubot:script

$ yo hubot:script

/usr/local/lib/node_modules/generator-hubot/generators/script/index.js:64
      var userName = this.user.git.name();
                                   ^
TypeError: Property 'name' of object #<Object> is not a function
    at Base.yeoman.generators.Base.extend.prompting.askFor (/usr/local/lib/node_modules/generator-hubot/generators/script/index.js:64:36)
    at /usr/local/lib/node_modules/generator-hubot/node_modules/yeoman-generator/lib/base.js:381:14
    at processImmediate [as _immediateCallback] (timers.js:345:15)

I'm not aware of any extra config I may need to do, but git is configured with a name:

$ git config --list
user.name=Andrew Khoury

I installed the generator via npm install -g yo generator-hubot on OSX.

@drewkhoury
Copy link
Author

It would appear that using yo hubot-script works, however it's not clear (to me) why the README.md suggests one over the other, or why two exist.

@technicalpickles
Copy link
Member

What version of yo do you have installed, ie yo --version? I think I have seen this before, but can't be sure.

It would appear that using yo hubot-script works, however it's not clear (to me) why the README.md suggests one over the other, or why two exist.

They are different packages. yo hubot:script is the official one.

@technicalpickles
Copy link
Member

I suspec this may be related to the version of yo installed. If anyone else sees this, can you report the output of yo --version, and try upgrading.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants