Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cross-platform Docker setup fails on M1 mac while setting up elm using using npm install #2232

Open
basghar opened this issue Nov 7, 2021 · 6 comments

Comments

@basghar
Copy link

basghar commented Nov 7, 2021

Quick Summary:
We use docker in order to support multi-platform dev environment. On M1 macs, npm install -g elm fails because there is no pre-build binary for linux_arm64. We want to avoid having different docker for different platform.

This is use-case for #2007

> node install.js

-- ERROR -----------------------------------------------------------------------

I am detecting that your computer (linux_arm64) may not be compatible with any
of the official pre-built binaries.

I recommend against using the npm installer for your situation. Check out the
alternative installers at https://github.com/elm/compiler/releases/tag/0.19.1
to see if there is something that will work better for you.

From there I recommend asking for guidance on Slack or Discourse to find someone
who can help with your specific situation.

--------------------------------------------------------------------------------
  • Elm: 0.19.1
  • Browser: N/A
  • Operating System: Docker on M1 Mac using arm64 linux.

Additional Details

None

@github-actions
Copy link

github-actions bot commented Nov 7, 2021

Thanks for reporting this! To set expectations:

  • Issues are reviewed in batches, so it can take some time to get a response.
  • Ask questions in a community forum. You will get an answer quicker that way!
  • If you experience something similar, open a new issue. We like duplicates.

Finally, please be patient with the core team. They are trying their best with limited resources.

@basghar basghar changed the title Cross-platform Docker setup fails when using npm install elm Cross-platform Docker setup fails when using npm install elm on M1 Nov 7, 2021
@basghar basghar changed the title Cross-platform Docker setup fails when using npm install elm on M1 Cross-platform Docker setup fails on M1 mac when using npm install elm Nov 7, 2021
@basghar basghar changed the title Cross-platform Docker setup fails on M1 mac when using npm install elm Cross-platform Docker setup fails on M1 mac while setting up elm using using npm install Nov 7, 2021
@cllns
Copy link

cllns commented Dec 1, 2021

Just ran into this same issue.

A workaround I found is to specify v0.19.1-4, which has a commit that added support for ARM (for macOS Silicon). It also added support for linux_arm64 as a byproduct of this.

The current release, one patch version higher at v0.19.1-5 includes a commit that continues to support apple_arm64 but inadvertently drops support for linux_arm64 (which is what Docker uses on hosts that are Apple Silicon, i.e. apple_arm64).

cllns added a commit to cllns/elm-compiler that referenced this issue Dec 1, 2021
cllns added a commit to cllns/elm-compiler that referenced this issue Dec 1, 2021
cllns added a commit to cllns/elm-compiler that referenced this issue Dec 1, 2021
@akoppela
Copy link

As an alternative nix can be used to build docker images. Because nix has support to build Elm on ARM.

@mageekguy
Copy link

Hi! Is it possible to merge this PR? Or to say what is the problem with it? Because I need to use a linux_arm64 version of elm with npm, and without this fix, it is currently impossible to do that.

@gpositive
Copy link

Hello,

Any news regarding this PR? It's still a blocker for us.
Is there any way we can help progressing this a bit faster?

Thanks!

@lydell
Copy link
Contributor

lydell commented Aug 9, 2023

#2287 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants