Я установил nodebrew, yeoman и 2 генератора (генератор-webapp, генератор-бутстрап). Но старшина, кажется, не знают, что генераторы: (. Когда это yo bootstrap
, это произошло подобная ошибка)ошибка установки генератора-генератора
$ yo webapp
Error webapp
You don't seem to have a generator with the name webapp installed.
You can see available generators with npm search yeoman-generator and then install them with npm install [name].
To see the 3 registered generators run yo with the `--help` option.
Так я бегу yo --help
, но он не показывает каких-либо генераторов:
$ yo --help
Usage: yo GENERATOR [args] [options]
General options:
-h, --help # Print generator's options and usage
-f, --force # Overwrite files that already exist
Но я бегу yo
без каких-либо аргументов, генераторы показаны:
$ yo
? 'Allo mehtats! What would you like to do? (Use arrow keys)
Run a generator
❯ Bootstrap
Webapp
Mocha
──────────────
Update your generators
Install a generator
Find some help
Get me out of here!
──────────────
Тогда я выбираю Webapp
и запустить этот генератор, как произошла ошибка:
Make sure you are in the directory you want to scaffold into.
This generator can also be run with: yo webapp
_-----_
| | .--------------------------.
|--(o)--| | Welcome to Yeoman, |
`---------´ | ladies and gentlemen! |
(_´U`_) '--------------------------'
/___A___\
| ~ |
__'.___.'__
´ ` |° ´ Y `
Out of the box I include HTML5 Boilerplate, jQuery, and a Gruntfile.js to build your app.
? What more would you like? Bootstrap
create Gruntfile.js
create package.json
create .gitignore
create .gitattributes
create .bowerrc
create bower.json
create .jshintrc
create .editorconfig
create app/styles/main.css
create app/favicon.ico
create app/robots.txt
create app/index.html
create app/scripts/main.js
Error
You don't seem to have a generator with the name mocha installed.
You can see available generators with npm search yeoman-generator and then install them with npm install [name].
To see the 3 registered generators run yo with the `--help` option.
я ссылался на другие вопросы и сделать npm install --force -g webapp
, но она не была решена.
yo doctor
сказал:
$ yo doctor
[Yeoman Doctor] Everything looks all right!
Версия:
$ yo -v
1.4.0
$ node -v
v0.11.14
Попробуйте обновить свои генераторы с помощью '$ yo'. – simeg