-
Notifications
You must be signed in to change notification settings - Fork 194
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 Silicon / arm64 / M1 compatibility? #259
Comments
Same here. |
The traceback leads to https://github.com/nodejs/node/blob/bb3cbba9533b37429292fd1005efb8099e7ba872/deps/v8/src/wasm/wasm-code-manager.cc#L1609-L1617 – it looks like setting some permissions on a memory segment fails. |
This is all due to upstream - I'll close this for now since there's nothing I can do unfortunately. I do not own a M1 based machine, nor does this project contain code that is non-ES-compliant JavaScript. |
However - since the error is related to memory - you can try to apply this Node.js option to limit the amount of memory Node.js would try to allocate:
|
Also - nodejs/node#35986 should be a potential fix that would go out in a new release but we would have to wait a bit. |
Thank you for doing the research @pmmmwh 👏 I can confirm that the Node PR you found (nodejs/node#35986) fixes this specific issue upstream, and it has been merged into the main branch as of nodejs/node@c1442ec Now we just wait for Node to cut new releases with that commit. |
@idetatsu If you use CRA, can you try |
THIS HAVE BEEN FIXED IN NODEJS 15.3.0 🎉 |
For anyone else that has this issue and can't move to Node 15 (my project requires 12 at this point in time): I resolved it by uninstalling Node 12 and re-installing it under Rosetta. |
This did the trick for me with
Not for everyone, I tried node |
Please report to Node.js if you're having issues with You can also try installing Node.js under Rosetta 2, which will slightly hinder performance but could work. |
After installing Node v15.9.0, it started successfully. |
This is a writeup I did to explain how to get this working on an M1 chip in two minutes without the need to upgrade your node version in case anyone else finds themselves here as this is still a top Google result for the issue. Unfortunately upgrading node isn't always an options as some apps have dependencies that require a specific version of node and upgrading them is not in the playing cards - like the |
One answer solved my problem very well wasm code commit Allocation failed - process out of memory $ nvm uninstall 14
$ arch -x86_64 zsh
$ nvm install 14
$ nvm alias default 14 |
Node v15 here, and this worked beautifully for me 👌 |
Hi,
We're using & loving
react-refresh-webpack-plugin
- thank you!Recently Apple Silicon came out with arch64-based CPUs. Somehow, this plugin breaks on that architecture with a strange error as reported at facebook/create-react-app#10090
The error looks like this on
node=15.2.1 npm=7.0.10 platform=darwin arch=arm64
-The reproduction case is simple -
I do not use
create-react-app
, and use this plugin directly - but experience exactly the same failure case with webpack 4 as in that issue. If I comment out the line that adds this plugin and make no other changes, everything else works as expected.Do you have any guesses why the plugin would fail with WASM-related errors on the Apple arch64 / M1 chip?
The text was updated successfully, but these errors were encountered: