Java 创建应用程序时发生Jhipster错误:getJhipsterAppConfig不是函数
我正在尝试启动一个新的Jhipster Ionic,但我遇到了以下错误:Java 创建应用程序时发生Jhipster错误:getJhipsterAppConfig不是函数,java,angular,ionic-framework,npm,jhipster,Java,Angular,Ionic Framework,Npm,Jhipster,我正在尝试启动一个新的Jhipster Ionic,但我遇到了以下错误: $yo jhipster-ionic events.js:183 throw er; // Unhandled 'error' event ^ TypeError: this.getJhipsterAppConfig is not a function at module.exports.readConfig (C:\Users\User\AppData\Roaming\npm\node_
$yo jhipster-ionic
events.js:183
throw er; // Unhandled 'error' event
^
TypeError: this.getJhipsterAppConfig is not a function
at module.exports.readConfig (C:\Users\User\AppData\Roaming\npm\node_modules\generator-jhipster-ionic\generators\app\index.js:63:47)
at Object.<anonymous> (C:\Users\User\AppData\Roaming\npm\node_modules\generator-jhipster-ionic\node_modules\generator-jhipster\node_modules\yeoman-generator\lib\index.js:424:27)
at C:\Users\User\AppData\Roaming\npm\node_modules\generator-jhipster-ionic\node_modules\run-async\index.js:25:25
at new Promise (<anonymous>)
at C:\Users\User\AppData\Roaming\npm\node_modules\generator-jhipster-ionic\node_modules\run-async\index.js:24:19
at self.env.runLoop.add.completed (C:\Users\User\AppData\Roaming\npm\node_modules\generator-jhipster-ionic\node_modules\generator-jhipster\node_modules\yeoman-generator\lib\index.js:425:13)
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5)
at processImmediate [as _immediateCallback] (timers.js:745:5)
有人能提供一些帮助吗 显然这是一个已知的错误,jhipster ionic团队目前正在对此进行研究 我找到了一个临时解决办法: 在以下文件中:C:…\YourPersonalDirectory\AppData\Roaming\npm\node\U modules\generator jhipster ionic\generators\app\index.js 替换:
this.jhipsterAppConfig = this.getJhipsterAppConfig();
借
this.jhipsterAppConfig = this.getJhipsterAppConfig();
this.jhipsterAppConfig = this.getAllJhipsterConfig();