创建应用程序时出现Jhipster Ionic错误:getJhipsterAppConfig不是函数 [英] Jhipster Ionic Error while creating app : getJhipsterAppConfig is not a function

查看:82
本文介绍了创建应用程序时出现Jhipster Ionic错误:getJhipsterAppConfig不是函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试启动新的Jhipster Ionic,但是我被这个错误困住了:

I'm trying to start a new Jhipster Ionic but i'm stuck with this error :

$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

有人可以提供帮助吗?

Can someone provide some help ?

推荐答案

显然,这是一个已知的错误,jhipster-ionic小组目前正在对此进行处理.

Apparently it's an known error and the jhipster-ionic team is currently working on it.

我找到了一个临时解决方案:

I have found a temporary solution :

在文件中:C:... \ YourPersonalDirectory \ AppData \ Roaming \ npm \ node_modules \ generator-jhipster-ionic \ generators \ app \ index.js

In the file : C:...\YourPersonalDirectory\AppData\Roaming\npm\node_modules\generator-jhipster-ionic\generators\app\index.js

替换:

this.jhipsterAppConfig = this.getJhipsterAppConfig();

通过

this.jhipsterAppConfig = this.getAllJhipsterConfig();

这篇关于创建应用程序时出现Jhipster Ionic错误:getJhipsterAppConfig不是函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆