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

在按装yo react-webpack gallery-by-react时提示错误this.env.adapter.prompt(...).then is not a function

在按装yo react-webpack gallery-by-react时提示错误this.env.adapter.prompt(...).then is not a function

lisa02_08 2017-03-01 16:06:13
? 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)
查看完整描述

3 回答

?
lisa02_08

TA贡献2条经验 获得超0个赞

已解决,方法是:

安装generator-react-webapck

$  npm install -g generator-react-webpack

查看完整回答
反对 回复 2017-03-02
?
lisa02_08

TA贡献2条经验 获得超0个赞

怎么没有牛人回答呀,老师回答一下吧,没办法继续下去了呢

查看完整回答
反对 回复 2017-03-02
  • 3 回答
  • 0 关注
  • 1548 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信