创建应用程序时 Jhipster Ionic 错误:getJhipsterAppConfig 不是函数
Jhipster Ionic Error while creating app : getJhipsterAppConfig is not a function
我正在尝试启动一个新的 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_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)
这是我的 npm 版本:
+ yo@2.0.6
+ generator-jhipster-ionic@3.3.0
+ ionic@4.12.0
+-- generator-jhipster@6.0.1
`-- generator-jhipster-ionic@3.3.0
`-- generator-jhipster@6.0.1
有人可以提供帮助吗?
显然这是一个已知错误,jhipster-ionic 团队目前正在处理它。
我找到了一个临时解决方案:
在文件中:C:...\YourPersonalDirectory\AppData\Roaming\npm\node_modules\generator-jhipster-ionic\generators\app\index.js
替换:
this.jhipsterAppConfig = this.getJhipsterAppConfig();
来自
this.jhipsterAppConfig = this.getAllJhipsterConfig();
我正在尝试启动一个新的 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_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)
这是我的 npm 版本:
+ yo@2.0.6
+ generator-jhipster-ionic@3.3.0
+ ionic@4.12.0
+-- generator-jhipster@6.0.1
`-- generator-jhipster-ionic@3.3.0
`-- generator-jhipster@6.0.1
有人可以提供帮助吗?
显然这是一个已知错误,jhipster-ionic 团队目前正在处理它。
我找到了一个临时解决方案:
在文件中:C:...\YourPersonalDirectory\AppData\Roaming\npm\node_modules\generator-jhipster-ionic\generators\app\index.js
替换:
this.jhipsterAppConfig = this.getJhipsterAppConfig();
来自
this.jhipsterAppConfig = this.getAllJhipsterConfig();