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

JHipster应用程序创建问题

燕正德
2023-03-14

当我试图创建新的应用程序时,我收到以下消息

yarn install v1.5.1
info No lockfile found.
[1/5] Validating package.json...
[2/5] Resolving packages...
warning Resolution field "source-map@0.6.1" is incompatible with 
requested version "source-map@^0.5.6"

对不起,我在陈述我的问题时不够准确。因此,正如我所说的,我在创建新应用程序时收到这条消息。

./mvnw package -Pprod dockerfile:build
[INFO] Scanning for projects...
[INFO] 
[INFO] ------------------------------------------------------------------ 
 ------
[INFO] Building Jhipster Test Project 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------ 
------
[INFO] 
[INFO] --- maven-resources-plugin:3.0.1:copy-resources (default- 
resources) @ jhipster-test-project ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO] Copying 15 resources
[INFO] 
[INFO] --- maven-resources-plugin:3.0.1:resources (default-resources) @ 
jhipster-test-project ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO] Copying 15 resources
[INFO] 
[INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (enforce-versions) @ 
jhipster-test-project ---
[INFO] 
[INFO] --- maven-resources-plugin:3.0.1:copy-resources (docker-resources) 
@ jhipster-test-project ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] 
[INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent (pre-unit-tests) @ 
jhipster-test-project ---
[INFO] argLine set to -javaagent:/home/igor/.m2/repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/home/igor/JHipsterProjects/jhipster-test-project/target/test-results/coverage/jacoco/jacoco.exec -Djava.security.egd=file:/dev/./urandom -Xmx256m
[INFO] 
[INFO] --- git-commit-id-plugin:2.2.4:revision (default) @ jhipster-test-project ---
 [INFO] 
 [INFO] --- spring-boot-maven-plugin:1.5.9.RELEASE:build-info (default) @ jhipster-test-project ---
[INFO] 
[INFO] --- frontend-maven-plugin:1.6:install-node-and-yarn (install node and yarn) @ jhipster-test-project ---
[INFO] Installing node version v8.9.4
[INFO] Unpacking /home/igor/.m2/repository/com/github/eirslett/node/8.9.4/node-8.9.4-linux-x64.tar.gz into /home/igor/JHipsterProjects/jhipster-test-project/node/tmp
[INFO] Copying node binary from /home/igor/JHipsterProjects/jhipster-test-project/node/tmp/node-v8.9.4-linux-x64/bin/node to /home/igor/JHipsterProjects/jhipster-test-project/node/node
[INFO] Installed node locally.
[INFO] Installing Yarn version v1.3.2
[INFO] Unpacking /home/igor/.m2/repository/com/github/eirslett/yarn/1.3.2/yarn-1.3.2.tar.gz into /home/igor/JHipsterProjects/jhipster-test-project/node/yarn
[INFO] Installed Yarn locally.
[INFO] 
[INFO] --- frontend-maven-plugin:1.6:yarn (yarn install) @ jhipster-test-project ---
[INFO] Running 'yarn install --force' in /home/igor/JHipsterProjects/jhipster-test-project
[INFO] yarn install v1.3.2
[INFO] [1/5] Validating package.json...
[INFO] [2/5] Resolving packages...
[ERROR] warning Resolution field "source-map@0.6.1" is incompatible with requested version "source-map@^0.5.6"
[ERROR] warning Resolution field "source-map@0.6.1" is incompatible with requested version "source-map@^0.5.6"
[ERROR] warning Resolution field "source-map@0.6.1" is incompatible with requested version "source-map@^0.5.6"
[ERROR] warning Resolution field "source-map@0.6.1" is incompatible with requested version "source-map@0.5.x"
[ERROR] warning Resolution field "source-map@0.6.1" is incompatible with requested version "source-map@^0.5.3"
[ERROR] warning Resolution field "source-map@0.6.1" is incompatible with requested version "source-map@^0.5.6"
[ERROR] warning Resolution field "source-map@0.6.1" is incompatible with requested version "source-map@0.1.x"
[ERROR] warning Resolution field "source-map@0.6.1" is incompatible with requested version "source-map@^0.5.3"
[ERROR] warning Resolution field "source-map@0.6.1" is incompatible with requested version "source-map@^0.5.6"
[ERROR] warning Resolution field "source-map@0.6.1" is incompatible with requested version "source-map@^0.5.6"
[ERROR] warning Resolution field "source-map@0.6.1" is incompatible with requested version "source-map@~0.4.1"
[ERROR] warning Resolution field "source-map@0.6.1" is incompatible with requested version "source-map@0.5.x"
[ERROR] warning Resolution field "source-map@0.6.1" is incompatible with requested version "source-map@^0.5.7"
[ERROR] warning Resolution field "source-map@0.6.1" is incompatible with requested version "source-map@~0.5.1"
[ERROR] warning Resolution field "source-map@0.6.1" is incompatible with requested version "source-map@^0.4.2"
[ERROR] warning Resolution field "source-map@0.6.1" is incompatible with requested version "source-map@^0.5.3"
[ERROR] warning Resolution field "source-map@0.6.1" is incompatible with requested version "source-map@^0.5.6"
[ERROR] warning Resolution field "source-map@0.6.1" is incompatible with requested version "source-map@^0.5.6"
[ERROR] warning Resolution field "source-map@0.6.1" is incompatible with requested version "source-map@^0.5.6"
[ERROR] warning Resolution field "source-map@0.6.1" is incompatible with requested version "source-map@^0.5.6"
[ERROR] warning Resolution field "source-map@0.6.1" is incompatible with requested version "source-map@~0.5.0"
[ERROR] warning Resolution field "source-map@0.6.1" is incompatible with requested version "source-map@^0.5.3"
[ERROR] warning Resolution field "source-map@0.6.1" is incompatible with requested version "source-map@^0.5.1"
[ERROR] warning Resolution field "source-map@0.6.1" is incompatible with requested version "source-map@~0.2.0"
[ERROR] warning Resolution field "source-map@0.6.1" is incompatible with requested version "source-map@^0.4.4"
[ERROR] warning Resolution field "source-map@0.6.1" is incompatible with requested version "source-map@^0.1.41"
[ERROR] warning Resolution field "source-map@0.6.1" is incompatible with requested version "source-map@^0.4.2"
[INFO] [3/5] Fetching packages...
[INFO] info fsevents@1.1.3: The platform "linux" is incompatible with this module.
[INFO] info "fsevents@1.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
[INFO] [4/5] Linking dependencies...
[ERROR] warning " > bootstrap@4.0.0" has unmet peer dependency 
"popper.js@^1.12.9".
[INFO] [5/5] Rebuilding all packages...
[INFO] success Saved lockfile.
[INFO] $ node node_modules/phantomjs-prebuilt/install.js
[INFO] Found PhantomJS at /home/igor/JHipsterProjects/jhipster-test-project/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs ...verifying
[INFO] PhantomJS is previously installed at /home/igor/JHipsterProjects/jhipster-test-project/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs
[INFO] Done in 9.71s.
[INFO] 
[INFO] --- frontend-maven-plugin:1.6:yarn (webpack build prod) @ jhipster-test-project ---
[INFO] yarn not inheriting proxy config from Maven
[INFO] Running 'yarn run webpack:prod' in /home/igor/JHipsterProjects/jhipster-test-project
[INFO] yarn run v1.3.2
[INFO] $ yarn run cleanup && yarn run webpack:prod:main && yarn run clean-www
[INFO] $ rimraf target/{aot,www}
[INFO] $ yarn run webpack -- --config webpack/webpack.prod.js --profile
[ERROR] warning From Yarn 1.0 onwards, scripts don't require "--" for options to be forwarded. In a future version, any explicit "--" will be forwarded as-is to the scripts.
[INFO] $ node --max_old_space_size=4096 node_modules/webpack/bin/webpack.js --config webpack/webpack.prod.js --profile
[INFO] MergetJsonsWebpackPlugin compilation started...
[INFO] MergetJsonsWebpackPlugin compilation completed...
[ERROR] buffer.js:202
[ERROR]   throw new TypeError(kFromErrorMsg);
[ERROR]   ^
[ERROR] 
[ERROR] TypeError: First argument must be a string, Buffer, ArrayBuffer, 
Array, or array-like object.
[ERROR]     at Function.Buffer.from (buffer.js:202:9)
[ERROR]     at new Buffer (buffer.js:158:17)
[ERROR]     at writeOut (/home/igor/JHipsterProjects/jhipster-test-project/node_modules/webpack/lib/Compiler.js:334:17)
[ERROR]     at require.forEach (/home/igor/JHipsterProjects/jhipster-test-project/node_modules/webpack/lib/Compiler.js:345:12)
[ERROR]     at /home/igor/JHipsterProjects/jhipster-test-project/node_modules/webpack/node_modules/async/dist/async.js:3096:16
[ERROR]     at eachOfArrayLike (/home/igor/JHipsterProjects/jhipster-test-project/node_modules/webpack/node_modules/async/dist/async.js:1055:9)
[ERROR]     at eachOf (/home/igor/JHipsterProjects/jhipster-test-project/node_modules/webpack/node_modules/async/dist/async.js:1103:5)
[ERROR]     at Object.eachLimit (/home/igor/JHipsterProjects/jhipster-test-project/node_modules/webpack/node_modules/async/dist/async.js:3158:5)
[ERROR]     at emitFiles (/home/igor/JHipsterProjects/jhipster-test-project/node_modules/webpack/lib/Compiler.js:315:21)
[ERROR]     at /home/igor/JHipsterProjects/jhipster-test-project/node_modules/mkdirp/index.js:30:20
[ERROR]     at FSReqWrap.oncomplete (fs.js:135:15)
[ERROR] error Command failed with exit code 1.
enter code here[INFO] info Visit https://yarnpkg.com/en/docs/cli/run for 
documentation about this command.
[ERROR] error Command failed with exit code 1.
[INFO] info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
[ERROR] error Command failed with exit code 1.
[INFO] info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 42.200 s
[INFO] Finished at: 2018-03-07T23:12:19+01:00
[INFO] Final Memory: 32M/397M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.6:yarn (webpack build prod) on project jhipster-test-project: Failed to run task: 'yarn run webpack:prod' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 1 
(Exit value: 1) -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

共有1个答案

齐成双
2023-03-14

JHipster 4.14.1修复了这个问题,请参见https://github.com/JHipster/generator-jhipster/issues/7188

 类似资料:
  • Ember CLI,Ember的命令行界面提供了一个标准的项目结构,一组开发工具和一个插件系统。这允许Ember开发人员专注于构建应用程序,而不是构建使它们运行的​​支持结构。可通过ember --help显示Ember CLI提供的命令,或通过ember help <command-name>查看特定命令的信息。 创建应用程序 $ ember new super-rentals 上述ember

  • 我使用的是Eclipse Kepler,我已经安装了Spring IDE和STS,但当我创建Spring MVC Template项目时,出现了错误,然后我转到Maven Update选项,但出现了错误。我不知道为什么。求求你,救命! 错误:项目构建过程中出错[firstSpring]构建过程中发生错误。在项目“firstSpring”上运行构建器“分面项目验证构建器”时出错。无法初始化类org.

  • 我们将使用Flash Builder 4.5创建Flex应用程序。 让我们从一个简单的HelloWorld应用程序开始。 第1步 - 创建项目 第一步是使用Flash Builder IDE创建一个简单的Flex项目。 使用File 》 New 》 Flex Project选项启动项目向导。 现在使用向导窗口将项目命名为HelloWorld ,如下所示 - 选择应用程序类型Web (runs in

  • 要创建一个简单的EJB模块,我们将使用NetBeans“新建项目”向导。 在下面给出的示例中,我们将创建一个名为Component的EJB模块项目。 创建项目 在NetBeans IDE中,选择“ File 》 New Project 》 。 您将看到以下屏幕 在类别Java EE下选择项目类型,将项目类型选择为EJB Module 。 单击“ Next 》按钮。 您将看到以下屏幕。 输入项目名称

  • 由于GWT的功能在于使用Java Write in Java, Run in JavaScript , Write in Java, Run in JavaScript ,我们将使用Java IDE Eclipse来演示我们的示例。 让我们从一个简单的HelloWorld应用程序开始 - 第1步 - 创建项目 第一步是使用Eclipse IDE创建一个简单的Web应用程序项目。 使用Google

  • 我尝试用创建react app。它给了我以下错误:

  • 在本章中,我们将讨论如何使用.NET Core创建UWP应用程序。 UWP也被称为Windows 10 UWP应用程序。 此应用程序不能在以前版本的Windows上运行,但只能在未来版本的Windows上运行。 现在按照下面这些步骤来创建并实现一个UWP应用程序。 首先,启动Visual Studio 2017社区版本。 点击菜单:文件,并选择:新建 -> 项目; 一个新的项目对话框将会出现。可以

  • 文件和文件夹设置 生成的应用程序文件夹将如下所示: 应用程序文件夹 应用程序配置存储在不同的位置,一些位于config文件夹中,如测试配置,一些存储在项目根目录中,如linting信息和构建信息。 CLI将应用程序特定的文件存储在src文件夹中,并将Angular 2特定的代码存储在src / app文件夹中。 CLI生成的文件和文件夹将遵循官方样式指南。 警告:CLI依赖配置文件中定义的某些设置