hubotio / generator-hubot

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

Change the default "botName" to avoid confusion in package dependencies #68

Closed mlb- closed 8 months ago

mlb- commented 8 years ago

On a fresh t2.micro, I install nvm, install a stable Node, and hubot appears to not be able to install! 😦

ubuntu@ip-10-2-6-57:~/hubot$ yo hubot
? ==========================================================================
We're constantly looking for ways to make yo better!
May we anonymously report usage statistics to improve the tool over time?
More info: https://github.com/yeoman/insight & http://yeoman.io
========================================================================== Yes
                     _____________________________
                    /                             \
   //\              |      Extracting input for    |
  ////\    _____    |   self-replication process   |
 //////\  /_____\   \                             /
 ======= |[^_/\_]|   /----------------------------
  |   | _|___@@__|__
  +===+/  ///     \_\
   | |_\ /// HUBOT/\\
   |___/\//      /  \\
         \      /   +---+
          \____/    |   |
           | //|    +===+
            \//      |xx|

? Owner User <user@example.com>
? Bot name hubot
? Description A simple helpful robot for your Company
? Bot adapter shell
   create bin/hubot
   create bin/hubot.cmd
   create Procfile
   create README.md
   create external-scripts.json
   create hubot-scripts.json
   create .gitignore
   create package.json
   create scripts/example.coffee
   create .editorconfig
                     _____________________________
 _____              /                             \
 \    \             |   Self-replication process   |
 |    |    _____    |          complete...         |
 |__\\|   /_____\   \     Good luck with that.    /
   |//+  |[^_/\_]|   /----------------------------
  |   | _|___@@__|__
  +===+/  ///     \_\
   | |_\ /// HUBOT/\\
   |___/\//      /  \\
         \      /   +---+
          \____/    |   |
           | //|    +===+
            \//      |xx|

npm ERR! Linux 3.13.0-74-generic
npm ERR! argv "/home/ubuntu/.nvm/versions/node/v6.2.1/bin/node" "/home/ubuntu/.nvm/versions/node/v6.2.1/bin/npm" "install" "hubot" "hubot-scripts" "hubot-diagnostics" "hubot-help" "hubot-heroku-keepalive" "hubot-google-images" "hubot-google-translate" "hubot-pugme" "hubot-maps" "hubot-redis-brain" "hubot-rules" "hubot-shipit" "hubot-shell" "--save"
npm ERR! node v6.2.1
npm ERR! npm  v3.9.3
npm ERR! code ENOSELF

npm ERR! Refusing to install hubot as a dependency of itself
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!     /home/ubuntu/hubot/npm-debug.log

Where should I look next to figure how to finish this hubot install?

mlb- commented 8 years ago

Alright, so I manually executed the node/npm command, and after bisecting the list of packages, I find that I cannot "npm install hubot --save".

mlb- commented 8 years ago

Ah ha! The package.json file is naming a project based upon the "Bot name", which defaults to "hubot", causing the conflict.

stale[bot] commented 7 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

technicalpickles commented 7 years ago

This is still a problem, so re-opening and pinning.

gr2m commented 7 years ago

we should change the default and prevent people from calling their own bot "hubot"

github-actions[bot] commented 8 months ago

:tada: This issue has been resolved in version 2.0.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: