thingsboard server ui 编译失败 · 物联网平台-威尼斯人最新

lifeontrip for thingsboard二次开发 · 2020年09月02日 · 最后由 lifeontrip 回复于 2020年09月04日 · 959 次阅读
本帖已被设为精华帖!

错误信息如下

[info] ------------------------------------------------------------------------
[error] failed to execute goal com.github.eirslett:frontend-maven-plugin:1.7.5:npm (npm install) on project ui-ngx: failed to run task: 'npm install' failed. java.io.ioexception: cannot run program "w:\iotfs\iotfs-hub\ui-ngx\target\node\node.exe" (in directory "w:\iotfs\iotfs-hub\ui-ngx"): createprocess error=193, %1 不是有效的 win32 应用程序。 -> [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
[error]
[error] after correcting the problems, you can resume the build with the command
[error]   mvn  -rf :ui-ngx

thingsboard 话题讨论区:https://www.iotschool.com/topics/node8

欢迎大家加入 thingsboard 二次开发讨论群:121202538

无解,这问题,翻墙都没法解决

node 卸了重装试试

没有效果。我把本地的 node 已经装到最新的。看了下 pom 文件。这个是 maven 插件下载的。本地的没问题。install node and npm


               com.github.eirslett
               frontend-maven-plugin
               1.7.5
               
                   target
                   ${basedir}
               
               
                   
                       install node and npm
                       
                           install-node-and-npm
                       
                       
                           v12.16.1
                           6.13.4
                       
                   
                   
                       npm install
                       
                           npm
                       
                       
                           install
                       
                   
               
           

太折腾了,原来是因为有干扰文件,删了重新编译就可以了。

  1. 把 maven 本地库里面lib_maven\com\github\eirslett这个目录下的所有文件
  2. 删除ui-ngx\target目录下的所有文件
  3. 用命令'mvn clean install -dskiptests'编译

完成上面的操作终于正常了。

thingskit 关闭了讨论 09月05日 09:33
thingskit 将本帖设为了精华贴 09月05日 09:33
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册
网站地图