[
https://issues.apache.org/jira/browse/FLINK-28260?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martijn Visser updated FLINK-28260:
-----------------------------------
Component/s: Build System
Runtime / Web Frontend
> flink-runtime-web fails to execute "npm ci" on Apple Silicon (arm64) without
> rosetta
> ------------------------------------------------------------------------------------
>
> Key: FLINK-28260
> URL: https://issues.apache.org/jira/browse/FLINK-28260
> Project: Flink
> Issue Type: Bug
> Components: Build System, Runtime / Web Frontend
> Reporter: Robert Metzger
> Priority: Major
>
> Flink 1.16-SNAPSHOT fails to build in the flink-runtime-web project because
> we are using an outdated frontend-maven-plugin (v 1.11.3).
> This is the error:
> {code}
> [ERROR] Failed to execute goal
> com.github.eirslett:frontend-maven-plugin:1.11.3:npm (npm install) on project
> flink-runtime-web: Failed to run task: 'npm ci --cache-max=0 --no-save
> ${npm.proxy}' failed. java.io.IOException: Cannot run program
> "/Users/rmetzger/Projects/flink/flink-runtime-web/web-dashboard/node/node"
> (in directory
> "/Users/rmetzger/Projects/flink/flink-runtime-web/web-dashboard"): error=86,
> Bad CPU type in executable -> [Help 1]
> {code}
> Using the latest frontend-maven-plugin (v. 1.12.1) properly passes the build,
> because this version downloads the proper arm64 npm version. However,
> frontend-maven-plugin 1.12.1 requires Maven 3.6.0, which is too high for
> Flink (highest mvn version for Flink is 3.2.5).
> The best workaround is using rosetta on M1 Macs.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)