rework-space-com / ambari

Apache Ambari simplifies provisioning, managing, and monitoring of Apache Hadoop clusters.
https://ambari.apache.org
Apache License 2.0
0 stars 0 forks source link

Fix ambari-admin bower dependencies from nexus #7

Closed Nazarii-Melnyk closed 2 months ago

Nazarii-Melnyk commented 2 months ago

Description

When bower dependencies downloaded from nexus mirror repository of bower.io, in result there are a problem with admin dashboard frontend:

image

All directories with bower dependencies have only one file - .bower.json, and looks like that:

image

The main possible problem is related with next errors from output logs:

Plumber found unhandled error:
 TypeError [ERR_INVALID_ARG_TYPE] in plugin 'gulp-useref'
The "path" argument must be one of type string, Buffer, or URL. Received type undefined

When bower dependencies downloads directly from bower.io there are no problems with this.

Nazarii-Melnyk commented 2 months ago

The main problem is with npm package bower-nexus3-resolver v1.0.4. This version has a bug, because when bower dependencies were downloaded they were saved in wrong path. This problem described here. To fix it the package bower-nexus3-resolver was downgraded to v1.0.2.