You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Robert Metzger (Jira)" <ji...@apache.org> on 2022/06/27 08:40:00 UTC

[jira] [Created] (FLINK-28260) flink-runtime-web fails to execute "npm ci" on Apple Silicon (arm64) without rosetta

Robert Metzger created FLINK-28260:
--------------------------------------

             Summary: 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
            Reporter: Robert Metzger


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.7#820007)