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

Apple M1 Support #39

Closed
alex-tan opened this issue Feb 9, 2021 · 1 comment · Fixed by #41
Closed

Apple M1 Support #39

alex-tan opened this issue Feb 9, 2021 · 1 comment · Fixed by #41

Comments

@alex-tan
Copy link

alex-tan commented Feb 9, 2021

Noticed that I wasn't able to install some dependencies in one of the projects I work on but also I'm unable to install the dependency directly either.

yarn global add elmi-to-json produces:

yarn global v1.22.10
[1/4] 🔍  Resolving packages...
warning elmi-to-json > binwrap > [email protected]: request-promise has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
warning elmi-to-json > binwrap > [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
warning elmi-to-json > binwrap > request > [email protected]: this library is no longer supported
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 🔨  Building fresh packages...
error /Users/alextan/.config/yarn/global/node_modules/elmi-to-json: Command failed.
Exit code: 1
Command: binwrap-install
Arguments: 
Directory: /Users/alextan/.config/yarn/global/node_modules/elmi-to-json
Output:
/Users/alextan/.config/yarn/global/node_modules/binwrap/install.js:18
    throw new Error("No binaries are available for your platform: " + buildId);
    ^

Error: No binaries are available for your platform: darwin-arm64
    at install (/Users/alextan/.config/yarn/global/node_modules/binwrap/install.js:18:11)
    at Object.install (/Users/alextan/.config/yarn/global/node_modules/binwrap/index.js:14:14)
    at Object.<anonymous> (/Users/alextan/.config/yarn/global/node_modules/binwrap/bin/binwrap-install:18:9)
    at Module._compile (node:internal/modules/cjs/loader:1108:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1137:10)
    at Module.load (node:internal/modules/cjs/loader:973:32)
    at Function.Module._load (node:internal/modules/cjs/loader:813:14)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:76:12)
    at node:internal/main/run_main_module:17:47

Happy to help test out if the package is updated for this platform.

@avh4
Copy link
Collaborator

avh4 commented Feb 9, 2021

I just did a similar fix for elm-format (avh4/elm-format#722), and I'd expect the change to be adding a mapping for darwin-arm64 here (for the moment at least, the new Macs are able to run the x64 binaries):

https://github.com/stoeffel/elmi-to-json/blob/master/index.js#L17

    "darwin-arm64": root + "-osx.tar.gz",

(As for actually building arm64 binaries, there are several upstream issues that I'm tracking for elm-format here: avh4/elm-format#723)

supermario added a commit to supermario/elmi-to-json that referenced this issue Jul 15, 2021
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

Successfully merging a pull request may close this issue.

2 participants