当前位置: 首页 > 知识库问答 >
问题:

jhipster在生成应用程序时给出autoloader错误

秦哲瀚
2023-03-14

我正在使用MacOS Big Sur 11.2.3Java版本“14.0.1”2020-04-14Node v16.1.0Git版本2.24.3(Apple Git-128)和Maven

Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: /usr/local/Cellar/maven/3.6.3_1/libexec
Java version: 14.0.1, vendor: N/A, runtime: /usr/local/Cellar/openjdk/14.0.1/libexec/openjdk.jdk/Contents/Home
Default locale: en_IN, platform encoding: UTF-8
OS name: "mac os x", version: "10.16", arch: "x86_64", family: "mac"

我已经用bellow命令安装了Jhipster,并且已经成功安装了。

sudo npm install -g generator-jhipster

但是现在,当我键入命令jhipster在新的项目文件夹中生成应用程序时,我得到了以下错误。我不知道哪里出了问题,如何解决这个问题。有谁能帮我做这件事吗。

 Error: editions-autoloader-invalid-engines: The edition had no engines to compare against the environment
        at new Errlop (/usr/local/lib/node_modules/generator-jhipster/node_modules/errlop/edition-es5/index.js:61:18)
        at Object.errtion (/usr/local/lib/node_modules/generator-jhipster/node_modules/editions/edition-es5/util.js:23:14)
        at isCompatibleEngines (/usr/local/lib/node_modules/generator-jhipster/node_modules/editions/edition-es5/index.js:183:19)
        at isCompatibleEdition (/usr/local/lib/node_modules/generator-jhipster/node_modules/editions/edition-es5/index.js:250:10)
        at determineEdition (/usr/local/lib/node_modules/generator-jhipster/node_modules/editions/edition-es5/index.js:287:4)
        at determineEdition (/usr/local/lib/node_modules/generator-jhipster/node_modules/editions/edition-es5/index.js:312:12)
        at solicitEdition (/usr/local/lib/node_modules/generator-jhipster/node_modules/editions/edition-es5/index.js:350:16)
        at Object.requirePackage (/usr/local/lib/node_modules/generator-jhipster/node_modules/editions/edition-es5/index.js:364:9)
        at Object.<anonymous> (/usr/local/lib/node_modules/generator-jhipster/node_modules/istextorbinary/index.cjs:4:38)
        at Module._compile (node:internal/modules/cjs/loader:1109:14) {
      klass: [Function: Errlop] {
        create: [Function (anonymous)],
        isErrlop: [Function (anonymous)],
        ensure: [Function (anonymous)]
      },
      parent: undefined,
      ancestors: [],
      orphanStack: 'Error: editions-autoloader-invalid-engines: The edition had no engines to compare against the environment\n' +
        '    at new Errlop (/usr/local/lib/node_modules/generator-jhipster/node_modules/errlop/edition-es5/index.js:61:18)\n' +
        '    at Object.errtion (/usr/local/lib/node_modules/generator-jhipster/node_modules/editions/edition-es5/util.js:23:14)\n' +
        '    at isCompatibleEngines (/usr/local/lib/node_modules/generator-jhipster/node_modules/editions/edition-es5/index.js:183:19)\n' +
        '    at isCompatibleEdition (/usr/local/lib/node_modules/generator-jhipster/node_modules/editions/edition-es5/index.js:250:10)\n' +
        '    at determineEdition (/usr/local/lib/node_modules/generator-jhipster/node_modules/editions/edition-es5/index.js:287:4)\n' +
        '    at determineEdition (/usr/local/lib/node_modules/generator-jhipster/node_modules/editions/edition-es5/index.js:312:12)\n' +
        '    at solicitEdition (/usr/local/lib/node_modules/generator-jhipster/node_modules/editions/edition-es5/index.js:350:16)\n' +
        '    at Object.requirePackage (/usr/local/lib/node_modules/generator-jhipster/node_modules/editions/edition-es5/index.js:364:9)\n' +
        '    at Object.<anonymous> (/usr/local/lib/node_modules/generator-jhipster/node_modules/istextorbinary/index.cjs:4:38)\n' +
        '    at Module._compile (node:internal/modules/cjs/loader:1109:14)',
      code: 'editions-autoloader-invalid-engines'
    }

共有1个答案

慕才
2023-03-14

始终使用JHipster文档中所述的LTS 64位版本的Node

 类似资料:
  • 我有个跟班问题。在构建我的应用程序时遇到这样一个错误,我找不到是怎么回事。 这是我的分级:

  • 当我在AppCenter中为Android构建我的Flutter应用程序时,我收到这个错误,它是什么“Gradle没有执行权限”,它不在我的机器上,它在AppCenter的:

  • 我已经将我的android应用程序与Paypal集成在一起,并用Paypal沙箱凭据对其进行了测试。Ti测试与其他凭据,我创建了另一个帐户,当我测试这个,我得到错误说.... 请给我宝贵的建议和帮助我

  • 我遇到了一些问题建设iOS(调试)。 重现步骤: < li >创建新的CN1项目。发送iOS版本- 运行模拟器或为Android构建没有问题。

  • 我用“http://www.jhipster.tech/jdl-studio/”创建了一个jdl文件,但当我在jhipster项目中启动import时,我出现了以下错误: 我在jdl Studio中没有错误 这是我的jdl文件 你能给我错误解析吗?我不明白... 我正在使用JHIPSTER4.9.0并使用函数import-jdl 文斯

  • 我正在使用Eclipse使用JHipster 1.4.0做一个应用程序。 在开发配置文件中,没问题,但是当我切换到prod配置文件时,构建中存在错误: 描述:生命周期配置未涵盖的插件执行:com.github.trecloux:yeoman-maven-plugin:0.2:build(执行:run-grunt,阶段:Generate-Resources) 资源:pom.xml 路径:/myapp