LoginSignup
6
7

More than 5 years have passed since last update.

generator-hubot@0.1.1 が動かない

Last updated at Posted at 2014-10-21

その後

generator-hubot@0.1.3 がリリースされた。問題なく動いているので、下記の対応は不要である。

問題

hubot@2.9.x から必須になった generator-hubot 。

公式に書いてある通りの手順をためしたが generator-hubot@0.1.1 が動かない。

$ npm install -g yo generator-hubot
$ mkdir myhubot
$ cd myhubot
$ yo hubot
Error hubot

You don't seem to have a generator with the name hubot installed.
You can see available generators with npm search yeoman-generator and then install them with npm install [name].
To see the 0 registered generators run yo with the `--help` option.

動くわけがないよね。README と package.json しかファイルが入ってないんだから。

$ npm install generator-hubot
$ ls node_modulles/generator-hubot/
README.md  node_modules  package.json

解決策

待つ。待てば直るとは思う。

もし、待てない場合は global install されるディレクトリに GitHub のリポジトリから generator-hubot インストールする。

例。Ubuntu で nvm などは使っていない場合の例。

$ cd /usr/local/lib/node_modules
$ sudo git clone git://github.com/github/generator-hubot.git
$ cd generator-hubot
$ sudo npm install
$ cd
$ mkdir myhubot
$ yo hubot

まとめ

generator-hubot@0.1.1 は様子見が賢明。

6
7
4

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
7