はじめに
hubotを作ろうと思ったら以下のエラーが出て作れなかった時のメモ
npm ERR! Darwin 15.3.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/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-slack" "--save"
npm ERR! node v5.8.0
npm ERR! npm v3.8.2
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!
/XXX/myhubot/npm-debug.log
調査結果
$yo hubot
_____________________________
/ \
//\ | Extracting input for |
////\ _____ | self-replication process |
//////\ /_____\ \ /
======= |[^_/\_]| /----------------------------
| | _|___@@__|__
+===+/ /// \_\
| |_\ /// HUBOT/\\
|___/\// / \\
\ / +---+
\____/ | |
| //| +===+
\// |xx|
? Owner Name <email@email.com>
? Bot name (hubot)
Bot nameをいれるところで、名前をhubotにしていたのがいけなかったらしい。
知らんかった・・hubot以外の名前をつけてあげたら何事も無くhubot生まれました。