Reputation: 557
So the project consists of angular front-end and spring boot back-end. When building pipeline project in Jenkins it fails while building the front side. I believe the error is due to different versions of node, angular etc? But I can't seem to find fix to this problem. There's some warning but only one error about the property 'resolve' being undefined.
14:49:45 [INFO] npm WARN @ng-bootstrap/[email protected] 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/[email protected] 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/[email protected] 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 [email protected] 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 [email protected] 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: [email protected] (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:
Need some help figuring out the fix for the error.
Upvotes: 0
Views: 783
Reputation: 1059
There is an issue with that Node Version on Windows, downgrade the Version to 10.15.x (or upgrade to latest) should fix your problem.
don't forget to change the Node Version on Jenkins, go to the Global Tool Configuration on Jenkins and pick the version there.
Upvotes: 1