Elm on Arm Linux on Parallels on MacOS

Weird way to run the software, but trying to make it work…

I am getting the following error:

(.venv) parallels@ubuntu-linux-2404:~$ npm install -g elm-land@latest
npm ERR! code 1
npm ERR! path /home/parallels/.npm-global/lib/node_modules/elm-land/node_modules/elm
npm ERR! command failed
npm ERR! command sh -c node install.js
npm ERR! -- ERROR -----------------------------------------------------------------------
npm ERR! 
npm ERR! I am detecting that your computer (linux_arm64) may not be compatible with any
npm ERR! of the official pre-built binaries.
npm ERR! 
npm ERR! I recommend against using the npm installer for your situation. Check out the
npm ERR! alternative installers at https://github.com/elm/compiler/releases/tag/0.19.1
npm ERR! to see if there is something that will work better for you.
npm ERR! 
npm ERR! From there I recommend asking for guidance on Slack or Discourse to find someone
npm ERR! who can help with your specific situation.
npm ERR! 
npm ERR! --------------------------------------------------------------------------------

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/parallels/.npm/_logs/2025-01-22T21_57_54_967Z-debug-0.log

Any help much appreciated!

2 Likes

There is no official Linux ARM binary. There is an unofficial one though: Release 0.19.1 unofficial binaries · lydell/compiler · GitHub

You should be able to switch to it by having this in package.json:

{
  "overrides": {
    "elm": "npm:@lydell/elm@0.19.1-14"
  },
  "dependencies": {
    "elm-land": "0.20.1"
  }
}
3 Likes

I have the same setup. I got elm working using elm-tooling. See Home | elm-tooling-cli