Skip to content

Arm64 Support (Apple Silicon M1) #224

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

Closed
danielehrhardt opened this issue Apr 26, 2021 · 6 comments
Closed

Arm64 Support (Apple Silicon M1) #224

danielehrhardt opened this issue Apr 26, 2021 · 6 comments

Comments

@danielehrhardt
Copy link

Short overview

npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for @nut-tree/[email protected]: wanted {"os":"linux,darwin,win32","arch":"x64,ia32"} (current: {"os":"darwin","arch":"arm64"})
npm ERR! notsup Valid OS:    linux,darwin,win32
npm ERR! notsup Valid Arch:  x64,ia32
npm ERR! notsup Actual OS:   darwin
npm ERR! notsup Actual Arch: arm64

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/danielehrhardt/.npm/_logs/2021-04-26T21_04_26_505Z-debug.log
@s1hofmann
Copy link
Member

There’s a snapshot release for https://github.com/nut-tree/libnut which includes arm64. https://github.com/nut-tree/opencv4nodejs needs additional work, tho.

@s1hofmann
Copy link
Member

s1hofmann commented Oct 19, 2021

Just a quick update on this issue: As I don't own an M1 Mac I will only spend time on this once nut.js donations allow me to get one or someone is willing to provide me an M1 Mac.

@antonbrams
Copy link

will the virtual machine on m2 solve the issue? Or this is a real hardware stuff that can't be virtualized?

@s1hofmann
Copy link
Member

@antonbrams nut.js >= 2.0.0 also supports Apple Silicon

@antonbrams
Copy link

@antonbrams nut.js >= 2.0.0 also supports Apple Silicon

Thanks for your quick reply! I'm just asking not only for nut-js but for other native modules included in my project (sorry for offtop but your are real experts here <3) I feel like if i'm starting the project on m2 the whole world collapses and i don't know how to compile all the native modules. And i want to sell my old project-laptop as quick as possible :/

@s1hofmann
Copy link
Member

@antonbrams Rosetta claims to solve this issue.

If it doesn't and you need help with your native modules, drop me a message.

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

3 participants