generator-hubot icon indicating copy to clipboard operation
generator-hubot copied to clipboard

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

Open mlb- opened this issue 8 years ago • 5 comments

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 <[email protected]>
? 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- avatar Jun 10 '16 23:06 mlb-

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- avatar Jun 10 '16 23:06 mlb-

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

mlb- avatar Jun 10 '16 23:06 mlb-

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.

stale[bot] avatar Jun 01 '17 03:06 stale[bot]

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

technicalpickles avatar Jun 30 '17 23:06 technicalpickles

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

gr2m avatar Jul 01 '17 17:07 gr2m

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

The release is available on:

Your semantic-release bot :package::rocket:

github-actions[bot] avatar Jan 05 '24 03:01 github-actions[bot]