带有 IBM websphere 错误的 Angular7 + maven (frontend-maven-plugin:1.0:npm (npm install fail))
Angular7 + maven with IBM websphere error (frontend-maven-plugin:1.0:npm (npm install fail))
我有一个完整的 angular7 项目,想与 java 集成。
有什么办法吗?
我正在使用 eclipse maven + ibm websphere。 (不是 spring 开机)
我提到了 并试图遵循...
然而,当我 运行 命令 mvn clean package 时,我遇到了这个错误
[INFO] --- frontend-maven-plugin:1.0:npm (npm install) @ angular7test ---
[INFO] Running 'npm install' in C:\Users\eclipse-workspace\angular7test\angular-project
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:01 min
[INFO] Finished at: 2018-11-29T23:16:03+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.0:npm (npm install) on project angular7test: Failed to run task: 'npm install' failed. java.io.IOException: Cannot run program "C:\Users\eclipse-workspace\angular7test\node_installation\node\node.exe" (in directory "C:\Users\eclipse-workspace\angular7test\angular-project"): CreateProcess error=267, The directory name is invalid -> [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
我也有一个问题..基于,maven 项目如下所示
- Maven 项目 -
- 来源
- 主要
- java
- 资源
- 网络应用
- WEB-INF
- web.xml
- angular-项目(我把我的angular项目粘贴在这里)
- node_installation ========>这是什么?????
- pom.xml
什么是node_installation? .. 那是一个文件夹吗?我需要创建吗?
这是我的包裹..
您发布的错误表明 Maven 无法找到 node.js 可执行文件 node.exe
以构建您的 Angular 项目。确保按照 frontend-maven-plugin readme page 上的指示配置 pom,以便它将节点和 npm 安装到 Maven 期望找到它的项目目录中。这将创建您缺少的 node_installation 目录并使用 node.exe
可执行文件填充它,这应该可以解决错误。
我有一个完整的 angular7 项目,想与 java 集成。 有什么办法吗?
我正在使用 eclipse maven + ibm websphere。 (不是 spring 开机)
我提到了
[INFO] --- frontend-maven-plugin:1.0:npm (npm install) @ angular7test ---
[INFO] Running 'npm install' in C:\Users\eclipse-workspace\angular7test\angular-project
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:01 min
[INFO] Finished at: 2018-11-29T23:16:03+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.0:npm (npm install) on project angular7test: Failed to run task: 'npm install' failed. java.io.IOException: Cannot run program "C:\Users\eclipse-workspace\angular7test\node_installation\node\node.exe" (in directory "C:\Users\eclipse-workspace\angular7test\angular-project"): CreateProcess error=267, The directory name is invalid -> [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
我也有一个问题..基于
- Maven 项目 -
- 来源
- 主要
- java
- 资源
- 网络应用
- WEB-INF
- web.xml
- angular-项目(我把我的angular项目粘贴在这里)
- node_installation ========>这是什么?????
- pom.xml
什么是node_installation? .. 那是一个文件夹吗?我需要创建吗?
这是我的包裹..
您发布的错误表明 Maven 无法找到 node.js 可执行文件 node.exe
以构建您的 Angular 项目。确保按照 frontend-maven-plugin readme page 上的指示配置 pom,以便它将节点和 npm 安装到 Maven 期望找到它的项目目录中。这将创建您缺少的 node_installation 目录并使用 node.exe
可执行文件填充它,这应该可以解决错误。