为了账号安全,请及时绑定邮箱和手机立即绑定

我执行命令 yo react-webpack gallery-by-react时报错

➜  gallery-by-react git:(master) yo react-webpack gallery-by-react


     _-----_

    |       |

    |--(o)--|   .--------------------------.

   `---------´  |    Welcome to Yeoman,    |

    ( _´U`_ )   |   ladies and gentlemen!  |

    /___A___\   '__________________________'

     |  ~  |

   __'.___.'__

 ´   `  |° ´ Y `


Out of the box I include Webpack and some default React components.


? Please choose your application name (galleryByReact)


events.js:141

      throw er; // Unhandled 'error' event

      ^


TypeError: this.env.adapter.prompt(...).then is not a function

    at Base.prompt (/usr/local/lib/node_modules/generator-react-webpack/node_modules/yeoman-generator/lib/base.js:240:45)

    at module.exports.generator.Base.extend.prompting (/usr/local/lib/node_modules/generator-react-webpack/generators/app/index.js:39:17)

    at Object.<anonymous> (/usr/local/lib/node_modules/generator-react-webpack/node_modules/yeoman-generator/lib/base.js:439:23)

    at /usr/local/lib/node_modules/generator-react-webpack/node_modules/yeoman-generator/node_modules/run-async/index.js:25:25

    at /usr/local/lib/node_modules/generator-react-webpack/node_modules/yeoman-generator/node_modules/run-async/index.js:24:19

    at /usr/local/lib/node_modules/generator-react-webpack/node_modules/yeoman-generator/lib/base.js:440:9

    at processImmediate [as _immediateCallback] (timers.js:383:17)

正在回答

1 回答

直接 在文件夹中 yo react-webpack就行了

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
React实战--打造画廊应用(上)
  • 参与学习       57309    人
  • 解答问题       273    个

颠覆式前端UI开发框架 React,打造图片画廊实践案讲解

进入课程

我执行命令 yo react-webpack gallery-by-react时报错

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信