2015-01-09 2 views
3

nodebrew, yeoman 및 2 세대 (generator-webapp, generator-bootstrap)를 설치했습니다. 그러나 유사시 발전기는 것을 모르는 것 같다 : (. 즉 yo bootstrap 경우, 유사한 오류가 발생한다) yeoman-generator 설치 오류

$ 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! 

버전 : 당신이 보좌관 대화 형 메뉴를 통해 발전기를 검색 할 수 있습니다, 직접 설치 NPM 사용과 함께

$ yo -v 
1.4.0 
$ node -v 
v0.11.14 
+0

'$ yo'를 통해 생성기를 업데이트 해보십시오. – simeg

답변

0

. yo을 실행하고 을 선택하십시오. 발행 된 발전기를 검색하려면 발전기을 설치하십시오.

enter image description here