繁体   English   中英

Jenkins 建筑 angular 项目无法读取未定义的属性“解析”

[英]Jenkins building angular project gets Cannot read property 'resolve' of undefined

所以项目由angular前端和spring引导后端组成。 在 Jenkins 中构建管道项目时,在构建前端时失败。 我相信错误是由于不同版本的节点,angular 等? 但我似乎找不到解决这个问题的方法。 有一些警告,但只有一个关于未定义属性“resolve”的错误。

14:49:45 [INFO] npm WARN @ng-bootstrap/ng-bootstrap@5.3.1 requires a peer of @angular/common@^8.0.0 but none is installed. You must install peer dependencies yourself.
14:49:45 [INFO] npm WARN @ng-bootstrap/ng-bootstrap@5.3.1 requires a peer of @angular/core@^8.0.0 but none is installed. You must install peer dependencies yourself.
14:49:45 [INFO] npm WARN @ng-bootstrap/ng-bootstrap@5.3.1 requires a peer of @angular/forms@^8.0.0 but none is installed. You must install peer dependencies yourself.
14:49:45 [INFO] npm WARN bootstrap@4.5.0 requires a peer of popper.js@^1.16.0 but none is installed. You must install peer dependencies yourself.
14:49:45 [INFO] npm WARN codelyzer@5.2.1 requires a peer of tslint@^5.0.0 but none is installed. You must install peer dependencies yourself.
14:49:45 [INFO] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/glob-watcher/node_modules/fsevents):
14:49:45 [INFO] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Cannot read property 'resolve' of undefined
14:49:45 [INFO] 
14:49:45 [INFO] npm ERR! Cannot read property 'resolve' of undefined
14:49:45 [INFO] 
14:49:45 [INFO] npm ERR! A complete log of this run can be found in:

需要一些帮助来找出错误的修复方法。

Windows 上的节点版本存在问题,将版本降级到 10.15.x(或升级到最新版本)应该可以解决您的问题。

不要忘记将 Jenkins、go 上的节点版本更改为 Jenkins 上的全局工具配置,并在那里选择版本。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM