反应回流 - 使用Yeoman的发电机

时间:2015-03-24 05:44:12

标签: node.js reactjs yeoman yeoman-generator yo

我正在尝试使用yeoman发生器生成反应回流项目,但我收到了以下错误。我正在使用yeoman发电机,我已经通过npm安装了发电机 - 反应 - 回流。

pdc1-4s6zyr1:expProj administrator$ yo
? 'Allo administrator! What would you like to do? (Use arrow keys)
  Run a generator
❯ Angular 
  Webapp 
  React Reflux 
  Karma 
  Yeogurt 
  Mocha 
(Move up and down to reveal more choices)/usr/local/lib/node_modules/yo/node_modules/configstore/index.js:86
? 'Allo administrator! What would you like to do? React Reflux

Make sure you are in the directory you want to scaffold into.
This generator can also be run with: yo react-reflux



     _-----_
    |       |    .---------------------------------------.
    |--(o)--|    |        Bye from us! Chat soon.        |
   `---------´   |                                       |
    ( _´U`_ )    |            The Yeoman Team            |
    /___A___\    | https://github.com/yeoman/yeoman#team |
     |  ~  |     '---------------------------------------'
   __'.___.'__   
 ´   `  |° ´ Y ` 

/usr/local/lib/node_modules/yo/node_modules/yeoman-environment/node_modules/inquirer/node_modules/rx/dist/rx.all.js:9379
        throw e;
              ^
TypeError: undefined is not a function
    at run (/usr/local/lib/node_modules/generator-react-reflux/node_modules/yeoman-generator/lib/base.js:445:21)
    at composeWith (/usr/local/lib/node_modules/yo/node_modules/yeoman-generator/lib/base.js:568:15)
    at yoyo._initGenerator (/usr/local/lib/node_modules/yo/yoyo.js:100:8)
    at null.<anonymous> (/usr/local/lib/node_modules/yo/yoyo.js:407:35)
    at PromptUI.onCompletion (/usr/local/lib/node_modules/yo/node_modules/yeoman-environment/node_modules/inquirer/lib/ui/prompt.js:69:10)
    at AnonymousObserver.Rx.AnonymousObserver.AnonymousObserver.completed (/usr/local/lib/node_modules/yo/node_modules/yeoman-environment/node_modules/inquirer/node_modules/rx/dist/rx.all.js:1965:12)
    at AnonymousObserver.Rx.internals.AbstractObserver.AbstractObserver.onCompleted (/usr/local/lib/node_modules/yo/node_modules/yeoman-environment/node_modules/inquirer/node_modules/rx/dist/rx.all.js:1902:14)
    at AutoDetachObserverPrototype.completed (/usr/local/lib/node_modules/yo/node_modules/yeoman-environment/node_modules/inquirer/node_modules/rx/dist/rx.all.js:9397:23)
    at AutoDetachObserver.Rx.internals.AbstractObserver.AbstractObserver.onCompleted (/usr/local/lib/node_modules/yo/node_modules/yeoman-environment/node_modules/inquirer/node_modules/rx/dist/rx.all.js:1902:14)
    at AnonymousObserver._onCompleted (/usr/local/lib/node_modules/yo/node_modules/yeoman-environment/node_modules/inquirer/node_modules/rx/dist/rx.all.js:3032:49)

我的节点和NPM已更新

pdc1-4s6zyr1:expProj administrator$ npm -v
2.5.1
pdc1-4s6zyr1:expProj administrator$ node -v
v0.12.0

我的Yeoman的版本是

pdc1-f3t18r1:~ administrator$ yo -v
1.3.3

在生成项目时,我有什么问题吗?

0 个答案:

没有答案