Coder Social home page Coder Social logo

Add support for Darwin arm64 about near-sdk-as HOT 10 OPEN

near avatar near commented on June 14, 2024 3
Add support for Darwin arm64

from near-sdk-as.

Comments (10)

chrispanag avatar chrispanag commented on June 14, 2024 5

Hello all, any plans on fixing that? As M1 Macbooks become more and more prolific, devs (like us) need to spend more time setting up a separate env (if that's available) etc.

Thanks for all the work up until now :)

from near-sdk-as.

wottpal avatar wottpal commented on June 14, 2024 2

Even though that might work it shouldn't be considered good practice to switch the architecture of your node installation. This has performance implications and also adds another layer of complexity for newcomers with M1-devices. Instead arm64 should be supported everywhere.

I got create-near-app running on my M1 machine with just adding those dependencies manually via yarn add near-sdk-as asbuild and by ignoring the installation-error. yarn dev seems to run fine after that even without changing my node-arch.

from near-sdk-as.

wilsonsilva avatar wilsonsilva commented on June 14, 2024 1

It works. Follow this article: https://www.jurnalanas.com/node-js-mac-m1/

If you used asdf to install node, reinstall it using this command arch -x86_64 asdf install nodejs 17.4.0

This might also be useful: https://docs.near.org/docs/faq/developer-faq#4-building-smart-contracts-on-apple-m1-arm64

from near-sdk-as.

willemneal avatar willemneal commented on June 14, 2024

Currently we don't generate the binary for m1, so this would fix the install but I'd fail when executing the VM. This binary is used in the simulation testing, which is a very limited tool and is deprecated in favor of near-sdk-sim. The new simulator aims to be compiled to Wasm, which will eliminate the need to create native binaries.

from near-sdk-as.

danielwpz avatar danielwpz commented on June 14, 2024

hey @willemneal , the issue is still there now. Shall we remove the dependency of near-vm?

from near-sdk-as.

agileurbanite avatar agileurbanite commented on June 14, 2024

+1 facing this issue as well, this seems to be a dependency for a dependency on create-near-app which makes yarn dev fail

from near-sdk-as.

agileurbanite avatar agileurbanite commented on June 14, 2024

seems related to: near/create-near-app#1260

from near-sdk-as.

agileurbanite avatar agileurbanite commented on June 14, 2024

Awesome thanks for that reference, we should consider adding a reference to that to the README.md in the repo. Created #693 so we can track it and issue a PR against it.

from near-sdk-as.

agileurbanite avatar agileurbanite commented on June 14, 2024

Related to #693

from near-sdk-as.

Doc-Failure avatar Doc-Failure commented on June 14, 2024

With node v12.22.7, everything works smoothly, but I don't think that's a great workaround.

from near-sdk-as.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.