开源改变世界!!

如果系统还安装了较新的 nodejs,则在构建期间会出现 modejs v10.15.0 段错误( #1587

推推 grbl 2年前 (2023-01-28) 155次浏览
关闭
lamikr 打开了这个问题 2021 年 4 月 28 日 · 0 条评论 · 由#1588修复
关闭

如果系统还安装了较新的 nodejs,则在构建期间会出现 modejs v10.15.0 段错误(#1587

lamikr 打开了这个问题 2021 年 4 月 28 日 · 0 条评论 · 由#1588修复

注释

如果系统还安装了较新的 nodejs,则在构建期间会出现 modejs v10.15.0 段错误( #1587
贡献者

描述
我安装了系统 nodejs 版本 v14.16.0 的错误,当我使用命令
nvm -X install 构建时,构建将在本地安装节点 v10.15.0 并尝试使用它。
然而,这将无法在节点中出现段错误。这将在构建日志中显示以下错误。

重现
重现行为的步骤:

  1. 节点——版本
    v14.16.0
  2. mvn -X 安装
  3. ugs-pendant 因以下错误而崩溃
    [INFO] Unpacking /home/lamikr/.m2/repository/com/github/eirslett/npm/6.4.1/npm-6.4.1.tar.gz into /home/lamikr/ misc/src/cnc/apps/ugs_lamikr_github.git/ugs-pendant/src/main/webapp/node/node_modules
    [INFO] 在本地安装 npm。
    [信息]
    [信息] — frontend-maven-plugin:1.6:npm (npm install) @ugs-pendant —
    [DEBUG] 配置 mojo com.github.eirslett:frontend-maven-plugin:1.6:npm 来自插件领域 ClassRealm[plugin>com.github.eirslett:frontend-maven-plugin:1.6, parent: jdk.internal.loader.ClassLoaders$AppClassLoader@1de0aca6]
    [DEBUG] 配置 mojo ‘com.github.eirslett:frontend-maven- plugin:1.6:npm’ with basic configurator –>
    [DEBUG] (f) arguments = install
    [调试] (f) npmInheritsProxyConfigFromMaven = true
    [调试] (f) 项目 = MavenProject: com.willwinder.universalgcodesender:ugs-pendant:2.0.7-SNAPSHOT @ /tmp/pom4659384592351377280.jgitver-maven-plugin.xml
    [调试] (f) repositorySystemSession = org.eclipse.aether.DefaultRepositorySystemSession@35edd886
    [DEBUG] (f) session = org.apache.maven.execution.MavenSession@8b13d91
    [DEBUG] (f) skipTests = false
    [DEBUG] (f) testFailureIgnore =假
    [DEBUG] (f) workingDirectory = /home/lamikr/misc/src/cnc/apps/ugs_lamikr_github.git/ugs-pendant/src/main/webapp
    [DEBUG] (f) execution = com.github.eirslett:frontend -maven-plugin:1.6:npm {execution: npm install}
    [DEBUG] — 结束配置 —
    [INFO] 在 /home/lamikr/misc/src/cnc/apps/ugs_lamikr_github.git/ugs-pendant/src/main/webapp 中运行 ‘npm install’
    [DEBUG] 执行命令行 [/home/lamikr/misc/src /cnc/apps/ugs_lamikr_github.git/ugs-pendant/src/main/webapp/node/node, /home/lamikr/misc/src/cnc/apps/ugs_lamikr_github.git/ugs-pendant/src/main/webapp/ node/node_modules/npm/bin/npm-cli.js, install]
    [INFO]
    [INFO] > core-js@3.6.4 postinstall /home/lamikr/misc/src/cnc/apps/ugs_lamikr_github.git/ugs- pendant/src/main/webapp/node_modules/@angular-devkit/build-angular/node_modules/core-js
    [信息] > node -e “try{require(‘./postinstall’)}catch(e){}”
    [信息]
    [信息] —————————————— ————————–
    [信息] ugs-parent 2.0 的反应器摘要。7-快照:
    [信息]
    [信息] ugs-parent ………………………………………..成功 [ 1.026 s]
    [信息] ugs-core ……………………………………….. …. 成功 [ 31.296 s]
    [信息] ugs-pendant …………………………….. ….. 失败 [ 34.065 秒]
    [信息] ugs-cli ………………………….. ………已跳过
    [信息] ugs-classic ………………………….. ……. 跳过
    [信息] ugs-platform-parent ………………… 跳过
    [ INFO] ugs-platform-b​​randing ………………… 已跳过
    [INFO] ugs-platform-ugslib …. …………………….已跳过
    [信息] ugs-platform-ugscore ………………… ………………. 跳过
    [信息] ugs-platform-visualizer ………………… 已跳过
    [信息] ugs-platform-plugin-workflow … ………………..已跳过
    [信息] ugs-platform-gcode-editor ………………. ……. 跳过
    [信息] ugs-platform-surfacescanner ………………… 跳过
    [信息] ProbeModule ….. ……………………………..已跳过
    [信息] DowelModule ……… …………………….已跳过
    [信息] GcodeTools ………………… ……………………….已跳过
    [信息] ugs-platform-plugin-jog ………………… ……………….已跳过
    [信息] ugs-platform-plugin-setup-wizard ………………已跳过
    [信息] ugs-platform-welcome-page ……………………跳过
    [信息] ugs-platform-plugin-joystick ………………….已跳过
    [信息] ugs-platform-plugin-cloud-storage …. …………..已跳过
    [信息] ugs-platform-plugin-toolbox ………………… 已跳过
    [信息] ugs-platform-plugin-dro ……………….已跳过
    [信息] ugs-platform-app … …………………………….. 已跳过
    [信息] ————– ———————————————- ——–
    [信息] 构建失败
    [信息] ——————————– ————————————
    [信息] 总时间:01:09 分钟
    [信息] 完成于:2021-04-27T20:46:02+03:00
    [信息] ————————– ——————————————
    [错误] 无法在项目 ugs-pendant 上执行目标 com.github.eirslett:frontend-maven-plugin:1.6:npm (npm install):无法运行任务:’npm install’ 失败。org.apache.commons.exec.ExecuteException: Process exited with an error: 139 (Exit value: 139) -> [帮助 1]
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.github.eirslett:frontend 问题-maven-plugin:1.6:npm (npm install) 在项目 ugs-pendant 上:无法
    在 org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
    在 org.apache.maven 上运行任务。生命周期.internal.MojoExecutor.execute (MojoExecutor.java:156)
    在 org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)

预期行为
构建应该成功

版本
UGS 主站

操作系统(请填写以下信息):
Linux

其他上下文
类似的错误也在这里报告:
eirslett/frontend-maven-plugin#826

lamikr 将提交推送到引用此问题的 lamikr/Universal-G-Code-Sender 2021 年 4 月 28 日

喜欢 (0)