SFML community forums

Help => General => Topic started by: BananaBro_Chaos on October 16, 2024, 03:29:59 pm

Title: sfml.js not being able to be installed via npm
Post by: BananaBro_Chaos on October 16, 2024, 03:29:59 pm
I wanted to try and use node.js to write a server in conjunction with SFML, so I used the npm download link provided here: https://www.npmjs.com/package/sfml.js/v/0.0.1-preview.46. However, every time I ran it terminal, I always get a bunch of lines of error. Thus, I am wondering if I missed an update, or if sfml.js isn't compatible with my computer. I tried to do some researching regarding sfml.js, but there are no other links or information that I can find regarding it.

I put the terminal output below.

(click to show/hide)

I am using a MacBook Pro with an Apple M1 chip.

Any help / comments would be appreciated. Thanks!
Title: Re: sfml.js not being able to be installed via npm
Post by: eXpl0it3r on October 19, 2024, 10:03:28 pm
M1/ARM64 architecture support was only added in SFML 2.6

The sfml.js binding seems to use SFML 2.5.1, as such this won't be natively supported.
You could try to get in touch with the authors so see if it could be updated: https://sfml.js.org/

Alternatively, you could try and use the x64 version of node with Rosetta as translator.