-
Notifications
You must be signed in to change notification settings - Fork 29
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
Can't get it to run on arm64 (apple m1) #3135
Comments
@netcriptus Do you have a M1 machine? If not can you try this out on maybe @DinaBB machine in the office? I asked @karlb to support in debugging this tomorrow so would be good if you can collaborate on this. |
No, mine is an Intel i5 |
So the module not found error was resolved by downgrading inquirer: The wrtc problem remains. As pointed out above I'm able to run the code by switching |
@compojoom @andrevmatos Is this still relevant or can I close? |
It's still relevant. We'll be checking for options on providing |
Fixed in latest releases (linked above). |
If someone tries to execute:
on an apple M1 machine the command fails with:
the problem is obviously with the wrtc package. I looked at it and it seems that there hasn't been a new update since January 2021 and that's why there is no binary for arm64. I stumbled across this issue:
node-webrtc/node-webrtc#698
And it turns out that there are user forks that have corrected that problem. In this comment: node-webrtc/node-webrtc#698 (comment) a user even published a new package that contains the necessary binaries.
So, I decided to test if this package will fix the problem. I cloned the repo and changed the wrtc dependency in
raiden-cli
andraiden-ts
to"@koush/wrtc": "^0.5.3",
Afterwards I tried to install. Now the wrtc error was gone, but I got a similar error with the canvas library. Luckily there the community seems to have new releases - they don't have a release with the binaries, but building from source worked after I installed the following dependencies:
source: Automattic/node-canvas#1733
Now I had to change the
require('wrtc')
in raiden-cli/src/index.ts torequire('@koush/wrtc')
. Then I followed the steps in the raiden-cli readme:Everything went fine. I tried to to execute the
./raiden
command, but was confronted with:No idea why that happens, but I was able to go around that by modifying the raiden file and just using
require('bundle')
. After that I was able to run the raiden command.I'm not advising switching to the fork, but posting this here in case anyone else runs into the issue. And maybe the raiden team could think on a better solution to the problem.
The text was updated successfully, but these errors were encountered: