[
https://issues.apache.org/jira/browse/YARN-11875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18028147#comment-18028147
]
ASF GitHub Bot commented on YARN-11875:
---------------------------------------
slfan1989 opened a new pull request, #8016:
URL: https://github.com/apache/hadoop/pull/8016
<!--
Thanks for sending a pull request!
1. If this is your first time, please read our contributor guidelines:
https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute
2. Make sure your PR title starts with JIRA issue id, e.g.,
'HADOOP-17799. Your PR title ...'.
-->
### Description of PR
JIRA: YARN-11875. Fix build failure caused by [email protected].
### How was this patch tested?
### For code changes:
- [ ] Does the title or this PR starts with the corresponding JIRA issue id
(e.g. 'HADOOP-17799. Your PR title ...')?
- [ ] Object storage: have the integration tests been executed and the
endpoint declared according to the connector-specific documentation?
- [ ] If adding new dependencies to the code, are these dependencies
licensed in a way that is compatible for inclusion under [ASF
2.0](http://www.apache.org/legal/resolved.html#category-a)?
- [ ] If applicable, have you updated the `LICENSE`, `LICENSE-binary`,
`NOTICE-binary` files?
> 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
> Reporter: Shilun Fan
> Assignee: Shilun Fan
> Priority: Major
>
> 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]