[
https://issues.apache.org/jira/browse/YARN-11875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18028221#comment-18028221
]
ASF GitHub Bot commented on YARN-11875:
---------------------------------------
slfan1989 commented on PR #8016:
URL: https://github.com/apache/hadoop/pull/8016#issuecomment-3379127397
> This was noted in
[YARN-11873](https://issues.apache.org/jira/browse/YARN-11873), where Michael
Smith highlighted that we can lock down dependencies in our yarn/npm builds.
>
> I believe we should do this -I never realised until now that we weren't
getting a consistent build.
>
> Also, this has broken branch-3.4, so please do a PR there too. We probably
need to backport everywhere else too.
@steveloughran Thanks for helping review the code — I’ll backport this PR to
branch-3.4.
> Fix build failure caused by [email protected]
> ---------------------------------------
>
> Key: YARN-11875
> URL: https://issues.apache.org/jira/browse/YARN-11875
> Project: Hadoop YARN
> Issue Type: Bug
> Components: buid
> Affects Versions: 3.5.0, 3.4.3
> Reporter: Shilun Fan
> Assignee: Shilun Fan
> Priority: Major
> Labels: pull-request-available
>
> A build failure occurs in the Yarn UI module due to an incompatible
> dependency version of {{{}[email protected]{}}}, which requires Node.js ≥ 18.
> The current build environment uses Node.js 12.22.1, resulting in the
> following error during dependency installation
> {code:java}
> error [email protected]: The engine "node" is incompatible with this module.
> Expected version ">=18". Got "12.22.1"
> error Found incompatible module. {code}
> h3. *Root Cause*
> The {{color}} package was pulled in as a transitive dependency from other
> modules (e.g., {{{}apidoc{}}}).
> Version {{5.0.2}} introduced a strict Node.js engine requirement (≥18), which
> is incompatible with the current Node 12 environment.
> h3. *Fix*
> Manually pinned the dependency to a Node 12–compatible version:
> "resolutions": \{
> "color": "^3.1.3"
> }
>
> This resolves the build failure without requiring a Node.js upgrade.
> h3. *Verification*
> * The Yarn UI build completes successfully under Node.js 12.22.1.
> * No runtime or API compatibility issues were observed.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]