0

当我尝试启用审计时,jhipster-entity-audit 抛出异常,异常:

    Reading the JHipster project configuration for your module
events.js:141
      throw er; // Unhandled 'error' event
      ^
TypeError: jhipsterFunc.copyTemplate is not a function
    at null.<anonymous> 
    at Array.forEach (native)
    at copyFiles 
    at module.exports.yeoman.generators.Base.extend.writing.writeBaseFiles 
    at Object.<anonymous> 
    at npm\node_modules\generator-jhipster-entity-audit\node_modules\ye
nc\index.js:24:25
    at processImmediate [as _immediateCallback] (timers.js:383:17)

我发现有关此问题generator-jhipster-entity-audit 的问题,但我是 npm 中的初学者。

请告诉我这个问题的最佳解决方案

升级版:

我尝试从这个repo下载 generator-jhipster ,现在我在启动 jhipster-entity-audit 时遇到了问题:

Error jhipster-entity-audit
You don't seem to have a generator with the name jhipster:modules installed.
You can see available generators with npm search yeoman-generator and then install them with npm install [name].
To see the 9 registered generators run yo with the `--help` option.
4

1 回答 1

0

不要使用 deepu 的 repo,它是一个 fork

使用官方或安装最新版 generator-jhipster 2.27.0

于 2016-01-20T14:15:52.837 回答