Comments (10)
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.
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.
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.
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.
hey @willemneal , the issue is still there now. Shall we remove the dependency of near-vm
?
from near-sdk-as.
+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.
seems related to: near/create-near-app#1260
from near-sdk-as.
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.
Related to #693
from near-sdk-as.
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)
- [Feature] LazyOption
- f64 does not compile HOT 2
- Unexpected transfer amount - ContractPromiseBatch HOT 4
- `yarn doc` cannot build doc HOT 1
- Error with u64 and generics
- Getting issue while using model HOT 3
- [Bug] Windows builds are broken
- Add support for the new staking action HOT 1
- Export the datetime.getDateTimeFromEpoch utility method
- Does the near team no longer maintain near-sdk-as? HOT 1
- Unable to build on M1 Mac on OSX Monterey even under emulation HOT 3
- Potentially look at using NativeMath seedRandom
- Docs: Add m1 mac workaround reference to main README HOT 4
- nearBindgen does not support child classes HOT 2
- What is the right way to panic or throw Error ? HOT 1
- How to create panic_utf8 ?
- Getting @nearBuildGen not found error
- Axios severely deprecated HOT 1
- Security Policy violation Branch Protection HOT 2
- Security Policy violation SECURITY.md HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from near-sdk-as.